diff --git a/.github/workflows/test-and-release.yml b/.github/workflows/test-and-release.yml index 8010308..d365936 100644 --- a/.github/workflows/test-and-release.yml +++ b/.github/workflows/test-and-release.yml @@ -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]+" @@ -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' @@ -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') @@ -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' @@ -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: @@ -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 }} \ No newline at end of file + body: ${{ steps.extract_release.outputs.BODY }} diff --git a/.yarnrc.yml b/.yarnrc.yml index fb9c47d..6ac47a0 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -1,7 +1,14 @@ +approvedGitRepositories: + - "**" + compressionLevel: mixed enableGlobalCache: true +enableScripts: true + nodeLinker: pnpm +npmMinimalAgeGate: 0 + preferInteractive: true diff --git a/package.json b/package.json index 5566cb3..a1fb40d 100644 --- a/package.json +++ b/package.json @@ -60,5 +60,5 @@ "@dprint/markdown": "^0.20.0", "@dprint/typescript": "^0.95.11" }, - "packageManager": "yarn@4.10.3" + "packageManager": "yarn@4.17.0" } diff --git a/yarn.lock b/yarn.lock index d405371..b87be93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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":