Skip to content

Commit a5d8542

Browse files
committed
Fix CI
1 parent 8a306d3 commit a5d8542

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,10 @@ jobs:
134134
ref: ${{ github.ref }}
135135
- uses: actions/setup-node@v4
136136
with:
137-
registry-url: https://registry.npmjs.org/
138137
node-version: 22
138+
registry-url: "https://registry.npmjs.org/"
139+
scope: "@making-sense-info"
140+
always-auth: true
139141
- run: yarn
140142
- run: yarn build
141143
- run: npx -y -p denoify@1.5.7 enable_short_npm_import_path
@@ -144,19 +146,11 @@ jobs:
144146
- uses: garronej/ts-ci@v2.1.0
145147
with:
146148
action_name: remove_dark_mode_specific_images_from_readme
147-
- name: Publishing on NPM
149+
- name: Publish to npm (Trusted Publishing)
148150
run: |
149-
if [ "$(npm show . version)" = "$VERSION" ]; then
150-
echo "This version is already published"
151-
exit 0
152-
fi
153-
if [ "$NODE_AUTH_TOKEN" = "" ]; then
154-
echo "Can't publish on NPM, You must first create a secret called NPM_TOKEN that contains your NPM auth token. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets"
155-
false
156-
fi
157151
EXTRA_ARGS=""
158152
if [ "$IS_PRE_RELEASE" = "true" ]; then
159-
EXTRA_ARGS="--tag next"
153+
EXTRA_ARGS="--tag next"
160154
fi
161155
npm publish $EXTRA_ARGS
162156
env:

0 commit comments

Comments
 (0)