Skip to content

update packages. more excludes #22

update packages. more excludes

update packages. more excludes #22

Workflow file for this run

name: npm test and release
on:
push:
branches:
- main
- release/*
tags:
- 'v*'
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [windows, macos, ubuntu]
node-version: ['20.x', '21.x', '22.x']
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- uses: actions/setup-go@v5
with:
go-version: '^1.23.1'
- run: |
npm ci
npm test
npm run prepare
npm run prepare:stubs
npm-publish:
if: startsWith(github.ref, 'refs/tags/')
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: https://registry.npmjs.org/
- uses: actions/setup-go@v5
with:
go-version: '^1.23.1'
- run: |
npm ci
npm run prepare
npm run prepare:stubs
npm publish --access=public --@cyclonedx:registry='https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}