Skip to content

Commit 1815fa7

Browse files
authored
chore(publish): fix publishing (#7780)
* chore(publish): test publishing Signed-off-by: Aviv Keller <me@aviv.sh> * testing * testing * testing * fixup * fixup! * fixup! --------- Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent 3783f9f commit 1815fa7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-packages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ jobs:
126126
- name: Publish
127127
working-directory: packages/${{ matrix.package }}
128128
env:
129-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
129+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
130130
run: |
131131
# Create a unique version using the commit SHA as a prerelease identifier
132132
# This ensures we can publish multiple times from the same codebase with unique versions
133-
npm version --no-git-tag-version 0.0.0-$COMMIT_SHA
133+
npm version --no-git-tag-version 1.0.1-$COMMIT_SHA
134134
# Publish the package to the npm registry with public access flag
135-
pnpm publish --access public
135+
pnpm publish --access public --no-git-checks
136136
137137
- name: Notify on Manual Release
138138
if: ${{ github.event_name == 'workflow_dispatch' }}
@@ -142,7 +142,7 @@ jobs:
142142
SLACK_ICON: https://github.com/nodejs.png?size=48
143143
SLACK_TITLE: ':rocket: Package Published: ${{ matrix.package }}'
144144
SLACK_MESSAGE: |
145-
:package: *Package*: `${{ matrix.package }}` (<https://www.npmjs.com/package/${{ steps.package-info.outputs.name }}|View on npm>)
145+
:package: *Package*: `${{ matrix.package }}` (<https://www.npmjs.com/package/@node-core/${{ matrix.package }}|View on npm>)
146146
:bust_in_silhouette: *Published by*: ${{ github.triggering_actor }}
147147
:octocat: *Commit*: <https://github.com/${{ github.repository }}/commit/${{ env.COMMIT_SHA }}|${{ env.COMMIT_SHA }}>
148148
SLACK_USERNAME: nodejs-bot

0 commit comments

Comments
 (0)