Skip to content

Commit

Permalink
Move publish job to ci.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlin committed Nov 18, 2021
1 parent cc8fa32 commit 6426897
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,19 @@ jobs:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npx bundlesize
publish:
if: ${{ github.ref == 'refs/heads/release' }}
needs: [build, unit-test, smoke-test, lint]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- run: node --version
- run: npm ci
- run: npm run rebuild-docker-image
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24 changes: 0 additions & 24 deletions .github/workflows/publish.yaml

This file was deleted.

0 comments on commit 6426897

Please sign in to comment.