Skip to content

Commit

Permalink
Merge branch 'master' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Rostaminikoo authored and Rostaminikoo committed Aug 15, 2023
2 parents 684537f + 9561c5e commit 1f24978
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/publish_to_npm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,26 @@ name: "publish to the npm registry"
on:
push:
branches: master


jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: checkout
uses: actions/checkout@v3
- name: node
uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run build
- run: npm test
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
registry-url: https://registry.npmjs.org
- name: install dependencies
run: npm ci
- name: build the package
run: npm run build
- name: test the package
run: npm test
- name: publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 1f24978

Please sign in to comment.