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
24 changes: 13 additions & 11 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

name: Test and Release

# Run this job on all pushes and pull requests
# Run this job on pushes to main and pull requests
# as well as tags with a semantic version
on:
push:
branches:
- main
- "main"
tags:
# normal versions
- "v[0-9]+.[0-9]+.[0-9]+"
Expand All @@ -25,18 +25,18 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]
node-version: [22.x, 24.x]
os: [ubuntu-latest]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7

- name: Enable Corepack
shell: bash
run: corepack enable

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
Expand All @@ -54,7 +54,7 @@ jobs:

# Deploys the final package to NPM
deploy:
# Trigger this step only when a commit on master is tagged with a version number
# Trigger this step only when a commit on main is tagged with a version number
if: |
github.event_name == 'push' &&
startsWith(github.ref, 'refs/tags/v')
Expand All @@ -64,18 +64,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22]
node-version: [24]

steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v7

- name: Enable Corepack
shell: bash
run: corepack enable

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v5
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
Expand Down Expand Up @@ -103,10 +103,12 @@ jobs:
run: yarn run build

- name: Publish package to npm
env:
TAG: ${{ steps.extract_release.outputs.TAG }}
run: yarn npm publish $TAG

- name: Create Github Release
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand All @@ -115,4 +117,4 @@ jobs:
draft: false
# Prerelease versions create prereleases on Github
prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
body: ${{ steps.extract_release.outputs.BODY }}
body: ${{ steps.extract_release.outputs.BODY }}
7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
approvedGitRepositories:
- "**"

compressionLevel: mixed

enableGlobalCache: true

enableScripts: true

nodeLinker: pnpm

npmMinimalAgeGate: 0

preferInteractive: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@
"@dprint/markdown": "^0.20.0",
"@dprint/typescript": "^0.95.11"
},
"packageManager": "yarn@4.10.3"
"packageManager": "yarn@4.17.0"
}
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution!

__metadata:
version: 8
version: 10
cacheKey: 10

"@alcalzone/pak@npm:^0.11.0":
Expand Down