Merge pull request #46 from js-smart/development #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish JS Cookie Service to NPM | |
on: | |
push: | |
### Publish on new tag release | |
tags: | |
- v* | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install Dependencies | |
run: npm i | |
- name: Build project | |
run: npm run build js-cookie-service | |
- name: Run Tests | |
run: npm run test js-cookie-service | |
- name: Publish to NPM | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: libs/js-cookie-service/package.json | |
access: public |