-
-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (40 loc) · 1.05 KB
/
release.yaml
File metadata and controls
48 lines (40 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
id-token: write # Required for OIDC
contents: write
pull-requests: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
# with:
# Figure out later if needed
# fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install dependencies
run: npm ci
- name: Diagnose npm
run: |
npm --version
npm whoami --registry=https://registry.npmjs.org || true
- name: Create Release PR or Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
title: "chore: release packages 📦"
commit: "chore: release packages 📦"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN - OIDC handles auth...in theory