diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index b28ac0e..4ef7b06 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,7 +20,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version-file: '.nvmrc' + node-version-file: '.node-version' cache: 'pnpm' - name: Installing dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbf1137..3d06065 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,13 +5,19 @@ on: branches: - main +concurrency: release + +env: + HUSKY: 0 + permissions: contents: read # for checkout jobs: release: name: Release - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 + environment: release permissions: contents: write # to be able to publish a GitHub release issues: write # to be able to comment on released issues @@ -19,7 +25,7 @@ jobs: id-token: write # to enable use of OIDC for npm provenance steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: fetch-depth: 0 @@ -27,13 +33,18 @@ jobs: uses: pnpm/action-setup@v4 - name: Use Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version-file: '.nvmrc' + node-version-file: '.node-version' cache: 'pnpm' + - name: Install latest npm + run: | + npm install -g npm@latest + npm --version + - name: Installing dependencies - run: pnpm install + run: pnpm install --frozen-lockfile - name: Building run: pnpm build @@ -45,6 +56,4 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - NPM_CONFIG_PROVENANCE: true - run: npx --no semantic-release + run: pnpm exec semantic-release diff --git a/.nvmrc b/.node-version similarity index 100% rename from .nvmrc rename to .node-version diff --git a/.prettierignore b/.prettierignore index c4cb2d5..6d2142d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -6,6 +6,6 @@ node_modules/ private/ .editorconfig .npmrc -.nvmrc +.node-version .prettierignore pnpm-lock.yaml