Skip to content

Commit 27da5c8

Browse files
authored
chore: switch to trusted publishing
1 parent f47c370 commit 27da5c8

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build_and_publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build and Publish API
22

33
permissions:
4+
id-token: write
45
contents: write
56

67
on:
@@ -15,10 +16,10 @@ jobs:
1516
# set up Node/Yarn and build the package
1617
- name: Checkout repository
1718
uses: actions/checkout@v3
18-
- name: Use Node.js 18
19+
- name: Set up Node
1920
uses: actions/setup-node@v3
2021
with:
21-
node-version: 18.x
22+
node-version: 24.x
2223
cache: "yarn"
2324
- name: Install packages
2425
run: yarn install
@@ -54,10 +55,7 @@ jobs:
5455
message: "chore: bump version to ${{ env.api_version }} [skip ci]"
5556
- name: Publish to NPM
5657
if: ${{ steps.checkTag.outputs.exists }} != true
57-
uses: JS-DevTools/npm-publish@v3
58-
with:
59-
access: public
60-
token: ${{ secrets.NPM_TOKEN }}
58+
run: npm publish
6159

6260
# update upryzing.js's repo
6361
- name: Checkout upryzing.js repository

0 commit comments

Comments
 (0)