mnswpr/.github/workflows/release.yml

36 lines
620 B
YAML

name: Release
permissions:
contents: write
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set node
uses: actions/setup-node@v6
with:
node-version-file: lts/*
registry-url: 'https://registry.npmjs.org'
- run: npx changelogithub@0.12
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- run: npm install
- run: npm run build
- run: npm publish