mirror of
https://github.com/LukeHagar/prettier-plugin-openapi.git
synced 2025-12-07 12:47:48 +00:00
Update release workflow to use Node.js v5 and latest version, enhance npm publish command with provenance and public access flags
This commit is contained in:
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -33,9 +33,10 @@ jobs:
|
|||||||
ref: ${{ github.event.workflow_run.head_sha }}
|
ref: ${{ github.event.workflow_run.head_sha }}
|
||||||
|
|
||||||
- name: Use Node 20
|
- name: Use Node 20
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v5
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: latest
|
||||||
|
registry-url: https://registry.npmjs.org
|
||||||
|
|
||||||
- name: Setup Bun
|
- name: Setup Bun
|
||||||
uses: oven-sh/setup-bun@v1
|
uses: oven-sh/setup-bun@v1
|
||||||
@@ -132,9 +133,9 @@ jobs:
|
|||||||
|
|
||||||
# Publish to npm (requires NPM_TOKEN in repo secrets)
|
# Publish to npm (requires NPM_TOKEN in repo secrets)
|
||||||
- name: Publish to npm
|
- name: Publish to npm
|
||||||
run: npm publish
|
run: npm publish --provenance --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
# Create a GitHub Release for the tag
|
# Create a GitHub Release for the tag
|
||||||
- name: Create GitHub Release
|
- name: Create GitHub Release
|
||||||
|
|||||||
Reference in New Issue
Block a user