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

jobs:
block-autosquash:
# bypass the action if the PR is a draft
if: github.event.pull_request.draft == false
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }}
name: block-autosquash
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -75,14 +74,21 @@ jobs:
run: npm run test

test-deno:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
deno: ['v1.x']
deno: ['v1.x', 'v2.x']
name: test:deno(${{ matrix.deno }})
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v4
id: npm-cache
with:
path: '**/node_modules'
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json', '.nvmrc') }}

- uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno }}
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@ on:
branches:
- main

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
release:
name: Release
runs-on: ubuntu-latest

steps:
Expand All @@ -19,6 +24,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm ci
Expand All @@ -30,4 +36,3 @@ jobs:
commit: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.CHANGESET_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20
24