mirror of
https://github.com/workos/skills.git
synced 2026-09-14 20:07:08 +08:00
c33f2d87bb
Co-authored-by: peakematt <peakematt@users.noreply.github.com>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
workflow_call:
|
|
secrets:
|
|
PUBLIC_SOCKET_FIREWALL_TOKEN:
|
|
description: >-
|
|
Socket Firewall auth token used to route public dependency downloads
|
|
through the WorkOS Socket Firewall. Passed explicitly by the caller.
|
|
required: true
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish to npm
|
|
runs-on: ubuntu-latest
|
|
environment: npm
|
|
permissions:
|
|
contents: read
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
|
|
- name: Configure Socket Firewall
|
|
uses: workos/setup-socket-firewall@ca93dd8aa351f54f4729fe3377a9be23c631c25d # v1
|
|
with:
|
|
token: ${{ secrets.PUBLIC_SOCKET_FIREWALL_TOKEN }}
|
|
|
|
- uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
|
|
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: 24
|
|
cache: pnpm
|
|
|
|
- name: Install
|
|
run: pnpm install
|
|
|
|
- name: Restore public package registry
|
|
uses: workos/setup-socket-firewall/teardown@ca93dd8aa351f54f4729fe3377a9be23c631c25d # v1
|
|
|
|
- name: Build
|
|
run: pnpm build
|
|
|
|
- name: Smoke test tarball
|
|
run: bash scripts/smoke-test-tarball.sh
|
|
|
|
- name: Publish
|
|
run: npm publish --tag latest --access public --provenance
|