Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
21 changes: 7 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
branches:
- 'main'

env:
NODE_VERSION: 20
PNPM_VERSION: 9
permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish-js:
Expand All @@ -18,16 +18,11 @@ jobs:
- name: Checkout project
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install Mise
uses: caido/action-mise-action@v3.2.0
with:
node-version: ${{ env.NODE_VERSION }}

- name: Setup pnpm
uses: pnpm/action-setup@v4.0.0
with:
version: ${{ env.PNPM_VERSION }}
run_install: false
working_directory: .
version: ${{ vars.CI__MISE_VERSION }}

- name: Install
run: pnpm install
Expand All @@ -37,8 +32,6 @@ jobs:

- name: Publish
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
# Read the current version from package.json
CURRENT_VERSION=$(jq -r '.version' ./package.json)
Expand Down
4 changes: 4 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[tools]
node = '22'
"npm:npm" = "11.6.2"
pnpm = '10.20.0'