Skip to content

v2.27.0

v2.27.0 #12

Workflow file for this run

name: NATS.js NPM release
on:
release:
types: [created]
jobs:
test:
strategy:
matrix:
node-version: [22.x]
deno-version: [1.44.4]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout NATS.js
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- name: Use Deno Version ${{ matrix.deno-version }}
uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno-version }}
- run: npm install -g npm
- run: npm ci
- run: npm run prepack
- name: Set tag
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Test tag
run: |
npm run check-package
- run: npm run clean
- run: npm publish --provenance --access public --tag=latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}