Skip to content

Merge pull request #10 from Llorx/prepare-release #25

Merge pull request #10 from Llorx/prepare-release

Merge pull request #10 from Llorx/prepare-release #25

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
jobs:
test:
uses: ./.github/workflows/test.yml
create-release:
runs-on: ubuntu-latest
needs: test
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: match-tag-to-package-version
uses: geritol/[email protected]
with:
TAG_PREFIX: v
- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
exclude_types: chore
- name: Release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.changes }}
publish-npmjs:
runs-on: ubuntu-latest
needs: create-release
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}