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
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,24 @@ on:

workflow_dispatch:

permissions:
contents: write
id-token: write
permissions: {}

jobs:
publish:
runs-on: ubuntu-latest
environment: npm
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22.20.0
package-manager-cache: false
Comment thread
SoonIter marked this conversation as resolved.

# Update npm to the latest version to enable OIDC
# Use corepack to install pnpm
Expand All @@ -39,12 +41,11 @@ jobs:
run: pnpm install

- name: Publish
uses: JS-DevTools/npm-publish@v4
uses: JS-DevTools/npm-publish@0fd2f4369c5d6bcfcde6091a7c527d810b9b5c3f # v4.1.5
with:
# token: empty # unnecessary if you use trusted publishing via OIDC
provenance: true

- name: Create GitHub Release
uses: ncipollo/release-action@v1
uses: ncipollo/release-action@339a81892b84b4eeb0f6e744e4574d79d0d9b8dd # v1.21.0
with:
generateReleaseNotes: "true"
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,31 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

permissions: {}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
runs-on: ${{ matrix.os }}
permissions:
contents: read
strategy:
matrix:
os: [ubuntu-latest, windows-latest]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1

- name: Install Pnpm
run: npm i -g corepack@latest --force && corepack enable

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 22.20.0
cache: "pnpm"
package-manager-cache: false
Comment thread
SoonIter marked this conversation as resolved.

- name: Install Dependencies
run: pnpm install && npx playwright install chromium
Expand Down
Loading