Skip to content

Commit

Permalink
Enable publication of alpha and beta version via Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanmathis committed Nov 19, 2021
1 parent 89f7926 commit 6516c56
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,15 @@ jobs:
registry-url: https://registry.npmjs.org/

- run: npm i
- run: cd packages/webpack-config && npm publish

- run: |
cd packages/webpack-config
VERSION=${GITHUB_REF/refs\/tags\//}
TAG='latest'
if [[ $VERSION =~ 'alpha' || $VERSION =~ 'beta' ]]; then
TAG='next'
fi
npm publish --tag $TAG
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Expand Down

0 comments on commit 6516c56

Please sign in to comment.