Merge pull request #338 from JarvusInnovations/develop #36
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
name: Publish npm package | |
on: | |
push: | |
tags: [ 'v*' ] | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '14.x' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: actions/checkout@v2 | |
- name: Place tag in environment | |
run: | | |
echo "SOURCE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV | |
- name: Setting package.json version | |
run: npm version --no-git-tag-version "${SOURCE_TAG#v}" | |
- run: npm install | |
- run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |