Skip to content

Commit 26849c6

Browse files
committed
fix: publish without token
1 parent 75078b7 commit 26849c6

File tree

2 files changed

+39
-6
lines changed

2 files changed

+39
-6
lines changed

.github/workflows/main.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Main
33
on:
44
push:
55
paths-ignore:
6-
- '**/*.md'
6+
- "**/*.md"
77
pull_request:
88
issues:
99
issue_comment:
@@ -17,7 +17,7 @@ jobs:
1717
contributor:
1818
uses: ocadotechnology/codeforlife-contributor-backend/.github/workflows/check-pr-authors-signed-latest-agreement.yaml@main
1919

20-
test:
20+
test:
2121
uses: ocadotechnology/codeforlife-workspace/.github/workflows/test-javascript-code.yaml@main
2222
secrets: inherit
2323
with:
@@ -59,12 +59,44 @@ jobs:
5959
github.repository_owner_id == 2088731 &&
6060
github.ref_name == github.event.repository.default_branch
6161
steps:
62-
- name: 🚀 Publish Semantic Release
63-
uses: ocadotechnology/codeforlife-workspace/.github/actions/github/release@main
62+
# - name: 🚀 Publish Semantic Release
63+
# uses: ocadotechnology/codeforlife-workspace/.github/actions/github/release@main
64+
# with:
65+
# ref: ${{ needs.build.outputs.sha }}
66+
# cfl-bot-gh-token: ${{ secrets.CFL_BOT_GH_TOKEN }}
67+
# npm-token: ${{ secrets.NPM_TOKEN }}
68+
69+
- name: 🛫 Checkout
70+
uses: actions/checkout@v5
6471
with:
72+
token: ${{ secrets.CFL_BOT_GH_TOKEN }}
6573
ref: ${{ needs.build.outputs.sha }}
66-
cfl-bot-gh-token: ${{ secrets.CFL_BOT_GH_TOKEN }}
67-
npm-token: ${{ secrets.NPM_TOKEN }}
74+
fetch-depth: 0
75+
76+
- name: 🌐 Set up Node 22
77+
uses: actions/setup-node@v4
78+
with:
79+
node-version: 22
80+
81+
- name: 🛠 Install Dependencies
82+
shell: bash
83+
run: |
84+
npm install --global npm
85+
npm install --global \
86+
semantic-release@^20.1.1 \
87+
@semantic-release/git@^10.0.1 \
88+
@semantic-release/changelog@^6.0.2
89+
90+
- name: 🚀 Publish Semantic Release
91+
shell: bash
92+
env:
93+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
94+
GH_TOKEN: ${{ secrets.CFL_BOT_GH_TOKEN }}
95+
GIT_AUTHOR_NAME: cfl-bot
96+
GIT_AUTHOR_EMAIL: [email protected]
97+
GIT_COMMITTER_NAME: cfl-bot
98+
GIT_COMMITTER_EMAIL: [email protected]
99+
run: npx semantic-release
68100

69101
monitor:
70102
uses: ocadotechnology/codeforlife-workspace/.github/workflows/monitor-javascript-release.yaml@main

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@
227227
]
228228
},
229229
"publishConfig": {
230+
"access": "public",
230231
"provenance": true
231232
}
232233
}

0 commit comments

Comments
 (0)