Skip to content

Commit

Permalink
chore: Simplify release script
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Apr 16, 2021
1 parent 68026c1 commit e7a6e87
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,30 +101,17 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Check if release is desired
# TODO - or if something changed? perhaps always on the releaseX branches?
id: do-publish
run: |
if [ -z "${{ secrets.NPM_TOKEN }}" ]; then
echo "env NPM_TOKEN not set!"
else
echo "Publish release"
echo ::set-output name=publish::"1"
fi
- name: Prepare Environment
if: ${{ steps.do-publish.outputs.publish }}
run: |
npm install
env:
CI: true
- name: Build
if: ${{ steps.do-publish.outputs.publish }}
run: |
npm run build
env:
CI: true
- name: Publish to NPM
if: ${{ steps.do-publish.outputs.publish }}
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
npm publish --access=public --tag latest
Expand Down

0 comments on commit e7a6e87

Please sign in to comment.