Skip to content

Commit 8a0d309

Browse files
committed
Update release.yml
1 parent e97eb3b commit 8a0d309

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
# Name of our action
21
name: Release
32

4-
# The event that will trigger the action
53
on:
64
push:
75
branches: [main]
86

9-
# what the action will do
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
id-token: write
11+
1012
jobs:
1113
release:
12-
# The operating system it will run on
1314
runs-on: ubuntu-latest
14-
# This check needs to be in place to prevent a publish loop with auto and github actions
1515
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
16-
# The list of steps that the action will go through
1716
steps:
1817
- name: Checkout
1918
uses: actions/checkout@v4
@@ -22,7 +21,10 @@ jobs:
2221
run: git fetch --unshallow --tags
2322

2423
- name: Install Node.js
25-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
25+
with:
26+
node-version: '22'
27+
registry-url: 'https://registry.npmjs.org'
2628

2729
- name: Setup Bun
2830
uses: oven-sh/setup-bun@v2
@@ -36,5 +38,5 @@ jobs:
3638
- name: Create Release
3739
env:
3840
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
NPM_TOKEN: ""
4042
run: npx auto shipit

0 commit comments

Comments
 (0)