Skip to content

v0.5.0: Drop the support for Node.js v16 #2

v0.5.0: Drop the support for Node.js v16

v0.5.0: Drop the support for Node.js v16 #2

Workflow file for this run

name: Publish the packages
on:
release:
types:
- published
permissions:
contents: read
packages: write
jobs:
deploy:
name: Build and deploy
runs-on: ubuntu-latest
env:
INVALID_DUMMY_TOKEN: invalid-token
steps:
- name: Stages the pushed branch
uses: actions/checkout@v3
- name: Prepare the Node.js environment
uses: actions/setup-node@v3
with:
cache: ${{ !env.ACT && 'npm' || '' }}
node-version-file: .node-version
- name: set npm config
run: npm config set unsafe-perm true
- name: Resolve the dependencies
run: npm ci
- name: Build and release for NPM
uses: JS-DevTools/npm-publish@v2
with:
access: public
dry-run: ${{ !!env.ACT }}
token: ${{ !env.ACT && secrets.NPM_TOKEN || env.INVALID_DUMMY_TOKEN }}
- name: Build and release for GitHub Registry
uses: JS-DevTools/npm-publish@v2
with:
access: public
dry-run: ${{ !!env.ACT }}
registry: https://npm.pkg.github.com
token: ${{ !env.ACT && secrets.GITHUB_TOKEN || env.INVALID_DUMMY_TOKEN }}