Skip to content

feat: node 20 release #40

feat: node 20 release

feat: node 20 release #40

Workflow file for this run

name: Publish
on: push
jobs:
build:
name: Publish to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org/'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Install dependencies
run: ./init.sh
- name: Run tests
run: npm run test
- name: Build
run: npm run build
- name: Dry-run release
run: npm run release:dryrun
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
run: npm run release
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}