Skip to content

Merge pull request #43 from js-smart/development #71

Merge pull request #43 from js-smart/development

Merge pull request #43 from js-smart/development #71

Workflow file for this run

name: Publish React 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 react-cookie-service
- name: Run Tests
run: npm run test react-cookie-service
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: libs/react-cookie-service/package.json
access: public