Skip to content

Commit

Permalink
ci: setup v5.x release automation
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Nov 20, 2024
1 parent 0d004fa commit 90eb705
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release-v5.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release v5.x

on:
push:
tags: ['v5.[0-9]+.[0-9]+']

jobs:
npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/iron # 20
registry-url: https://registry.npmjs.org
always-auth: true
- run: npm publish --provenance --tag previous
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

github:
needs:
- npm
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/iron # 20
cache: 'npm'
- run: node .release-notes.cjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 90eb705

Please sign in to comment.