Skip to content

release @xpr/jsocket #33

release @xpr/jsocket

release @xpr/jsocket #33

Workflow file for this run

name: release @xpr/jsocket
on:
workflow_dispatch:
# push:
# branches:
# - main
permissions:
contents: read # for checkout
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance (npm and jsr)
steps:
- name: ⛵️checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
# since the project uses Deno to install dependencies,
# the cache strategy key is the Deno lock file
- name: 👠 setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: ☂️setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
# cache-dependency-path: deno.lock
# cache: npm
- name: 🔑dependencies
# run: deno install # install dependencies for both
run: npm ci
- name: 🍓verify
run: npm audit signatures -w packages/npm
- name: 🌈build
run: npm run build -w packages/npm
- name: 🦋release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH }}