Skip to content

v0.2.1

v0.2.1 #48

Workflow file for this run

name: Publish Package to npmjs
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: [release]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build -w pkgs/typed-api-spec
- run: npm publish -w pkgs/typed-api-spec --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}