Skip to content

Commit cd1330d

Browse files
committed
ci: use trusted publisher
1 parent 6507495 commit cd1330d

File tree

4 files changed

+5
-956
lines changed

4 files changed

+5
-956
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,16 @@ jobs:
2121
with:
2222
submodules: recursive
2323
fetch-depth: 2
24+
- name: Setup Corepack
25+
run: corepack enable
2426
- name: Set up Node
25-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@v5
2628
with:
2729
node-version: 22
2830
- name: Get yarn cache directory path
2931
id: yarn-cache-dir-path
3032
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
31-
- uses: actions/cache@v3
33+
- uses: actions/cache@v4
3234
with:
3335
path: |
3436
${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -45,7 +47,6 @@ jobs:
4547
rm -rf node_modules yarn.lock **/tsconfig.tsbuildinfo
4648
- name: Config And Install
4749
run: |
48-
[[ ! -z "${{secrets.NPM_TOKEN}}" ]] && echo "npmAuthToken: ${{secrets.NPM_TOKEN}}" >> .yarnrc.yml
4950
git config --global user.name undefined
5051
git config --global user.email i@undefined.moe
5152
yarn
@@ -76,8 +77,6 @@ jobs:
7677
- name: Publish
7778
if: ${{ github.event_name == 'push' }}
7879
run: node -r @hydrooj/register build/publish.ts
79-
env:
80-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8180
# - name: Benchmark
8281
# run: yarn benchmark
8382
# - name: Benchmark result

.yarn/releases/yarn-4.9.1.cjs

Lines changed: 0 additions & 948 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,3 @@ preferInteractive: true
99
preferReuse: true
1010

1111
tsEnableAutoTypes: true
12-
13-
yarnPath: .yarn/releases/yarn-4.9.1.cjs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@
6262
"typescript": "5.8.3",
6363
"wtfnode": "^0.10.0"
6464
},
65-
"packageManager": "yarn@4.9.1"
65+
"packageManager": "yarn@4.10.3"
6666
}

0 commit comments

Comments
 (0)