ci: Update release workflow (no-changelog) (#13561)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-02-27 12:54:45 +01:00
committed by GitHub
parent 6ddcc1f8c9
commit ec57ac4ea2
3 changed files with 13 additions and 155 deletions

View File

@@ -51,14 +51,20 @@ jobs:
- name: Dry-run publishing
run: pnpm publish -r --no-git-checks --dry-run
- name: Publish to NPM
- name: Pre publishing changes
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
node .github/scripts/trim-fe-packageJson.js
node .github/scripts/ensure-provenance-fields.mjs
cp README.md packages/cli/README.md
sed -i "s/default: 'dev'/default: 'stable'/g" packages/cli/dist/config/schema.js
pnpm publish -r --publish-branch ${{github.event.pull_request.base.ref}} --access public --tag rc --no-git-checks
npm dist-tag rm n8n rc
- name: Publish to NPM
run: pnpm publish -r --publish-branch ${{github.event.pull_request.base.ref}} --access public --tag rc --no-git-checks
- name: Cleanup rc tag
run: npm dist-tag rm n8n rc
continue-on-error: true
- id: set-release
run: echo "release=${{ env.RELEASE }}" >> $GITHUB_OUTPUT