v7.0.1 #15
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 | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Setup NodeJS 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: yarn | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Publish universal-cookie to NPM | |
working-directory: ./packages/universal-cookie | |
run: npm publish | |
- name: Publish react-cookie to NPM | |
working-directory: ./packages/react-cookie | |
run: npm publish | |
- name: Publish universal-cookie-express to NPM | |
working-directory: ./packages/universal-cookie-express | |
run: npm publish | |
- name: Publish universal-cookie-koa to NPM | |
working-directory: ./packages/universal-cookie-koa | |
run: npm publish |