Skip to content

v2.0.0

v2.0.0 #2

Workflow file for this run

name: NUID NPM release
on:
release:
types: [created]
jobs:
npm_publish:
strategy:
matrix:
node-version: [22.x]
deno-version: [1.43.5]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout nuid
uses: actions/checkout@v4
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: |
deno test
- run: npm run clean
- run: npm publish --provenance --access public --tag=latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npx jsr publish