forked from griffinmartin/opencode-claude-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.11 KB
/
Copy pathrelease.yml
File metadata and controls
46 lines (37 loc) · 1.11 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
name: Release
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
issues: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: googleapis/release-please-action@v4
id: release-please
with:
release-type: node
- uses: pnpm/action-setup@v4
if: steps.release-please.outputs.releases_created == 'true'
- uses: actions/setup-node@v4
if: steps.release-please.outputs.releases_created == 'true'
with:
node-version: "22"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- run: pnpm install --frozen-lockfile
if: steps.release-please.outputs.releases_created == 'true'
- run: pnpm run build
if: steps.release-please.outputs.releases_created == 'true'
- run: pnpm publish --access public --provenance --no-git-checks
if: steps.release-please.outputs.releases_created == 'true'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}