Skip to content

Commit eb0475f

Browse files
committed
chore: update release action
1 parent b7e4414 commit eb0475f

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
if: github.repository == 'ghostdevv/jellycommands'
1111
name: Release
1212
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
1315
steps:
1416
- name: Checkout Repo
1517
uses: actions/checkout@v4
@@ -23,18 +25,16 @@ jobs:
2325
version: 9.12.3
2426
registry-url: https://registry.npmjs.org/
2527

26-
- name: Setup Node.js 18
28+
- name: Setup Node.js 22
2729
uses: actions/setup-node@v4
2830
with:
29-
node-version: 18
30-
registry-url: https://registry.npmjs.org/
31-
cache: 'pnpm'
31+
node-version: 22
3232

3333
- name: Install Dependencies
3434
run: pnpm install --frozen-lockfile
3535

3636
- name: Build
37-
run: pnpm build
37+
run: pnpm package
3838

3939
- name: Create Release Pull Request
4040
uses: changesets/action@v1
@@ -43,3 +43,4 @@ jobs:
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
46+
NPM_CONFIG_PROVENANCE: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dev-build": "pnpm --parallel -r build --watch",
1313
"dev-dev": "pnpm --filter dev -r dev",
1414
"build": "pnpm -r build",
15+
"package": "pnpm -r package",
1516
"release": "changeset publish",
1617
"lint": "pnpm -r lint",
1718
"fix": "pnpm -r fix",

packages/jellycommands/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"scripts": {
3636
"dev": "tsup-node --watch src",
3737
"build": "tsup-node",
38+
"package": "pnpm build && publint",
3839
"test": "vitest --coverage",
3940
"lint": "prettier --check src && eslint src && publint",
4041
"format": "prettier --write src"

0 commit comments

Comments
 (0)