Prepping for node-script 3.12.3 release (#1318) #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'node_*' # Push events to matching node_*, i.e. node_1.0, node_20.15.10 | |
name: Release Node script | |
jobs: | |
build: | |
name: Publish Node script release | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@master | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- name: Set env | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:11}) | |
- name: Node script install | |
run: | | |
cd publishers/node-script | |
yarn install | |
- name: Node script publish | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
cd publishers/node-script | |
mv .npmrc-publish .npmrc | |
npm publish --access public |