Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,20 @@ on:
default: false

permissions:
contents: write
# To publish packages with provenance
id-token: write

jobs:
release:
name: Release
permissions:
contents: write
# To publish packages with provenance
id-token: write
runs-on: ubuntu-latest

environment: npm
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Pnpm
- name: Setup Pnpm
run: |
npm install -g corepack@latest
corepack enable
Expand All @@ -64,6 +61,12 @@ jobs:
node-version: 20
cache: "pnpm"

# Update npm to the latest version to enable OIDC
- name: Update npm
run: |
npm install -g npm@latest
npm --version

- name: Install Dependencies
run: pnpm install

Expand All @@ -76,6 +79,3 @@ jobs:
DRY_RUN: ${{ inputs.dry_run }}
TAG: ${{ inputs.tag }}
VERSION: ${{ inputs.version }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}


3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
"types": "./dist/index.d.ts",
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/",
"provenance": true
"registry": "https://registry.npmjs.org/"
},
"exports": {
".": {
Expand Down
Loading