Skip to content

Commit

Permalink
Add publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
bahlo committed May 3, 2022
1 parent cfb3029 commit de6208a
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: CI

on:
push:
branches:
- main
on: push

jobs:
check-format:
Expand Down Expand Up @@ -31,4 +28,23 @@ jobs:
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run build
- run: npm run build
publish:
name: Publish
needs:
- check-format
- build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODEVERSION }}
cache: "npm"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
- uses: softprops/action-gh-release@v1

0 comments on commit de6208a

Please sign in to comment.