Skip to content

Commit b8174ca

Browse files
committed
chore(ci): fix workflows
1 parent a48440a commit b8174ca

File tree

7 files changed

+1768
-3388
lines changed

7 files changed

+1768
-3388
lines changed

.github/actions/setup/action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ runs:
55
using: composite
66
steps:
77
- name: Setup PNPM
8-
uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0
8+
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
99

1010
- name: Setup Node.js
11-
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
11+
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
1212
with:
1313
node-version-file: .node-version
1414
cache: pnpm
15+
registry-url: https://registry.npmjs.org
16+
17+
- name: Upgrade npm for trusted publishing
18+
shell: bash
19+
run: npm install -g npm@latest
1520

1621
- name: Install Dependencies
1722
shell: bash

.github/workflows/preview-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repo
14-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515

1616
- name: Setup
1717
uses: ./.github/actions/setup

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Release
22

33
on:
4-
workflow_dispatch:
54
push:
65
branches:
76
- main
@@ -17,32 +16,32 @@ permissions:
1716
env:
1817
NPM_CONFIG_PROVENANCE: true
1918

20-
concurrency: ${{ github.workflow }}-${{ github.ref }}
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
2122

2223
jobs:
2324
release:
24-
if: ${{ github.repository != 'Sec-ant/vanilla-ts' }}
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout Repo
28-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
28+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2929

3030
- name: Setup
3131
uses: ./.github/actions/setup
3232

3333
- name: Test
34-
run: pnpm -s test
34+
run: pnpm -s test:ci
3535

3636
- name: Get Next Package Version
3737
id: package-version
3838
run: echo "version=$(pnpm -s changeset status --output=release.json && jq -r '.releases[0].newVersion // '$(npm pkg get version)'' release.json && rm release.json)" >> $GITHUB_OUTPUT
3939

4040
- name: Create Release Pull Request or Publish to NPM
4141
id: changesets
42-
uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9
42+
uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3
4343
with:
4444
publish: pnpm -s changeset publish
4545
commit: "chore(release): v${{ steps.package-version.outputs.version }}"
4646
env:
47-
GITHUB_TOKEN: ${{ secrets.CHANGESET_TOKEN }}
48-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repo
14-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1515

1616
- name: Setup
1717
uses: ./.github/actions/setup
1818

1919
- name: Test
20-
run: pnpm -s test
20+
run: pnpm -s test:ci

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
*.tsx
1111
*.json
1212
*.jsonc
13+
pnpm-lock.yaml
14+
tests/**/fixtures/**/*
1315
.all-contributorsrc

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"nocheck-chevrotain-types": "tsx ./scripts/nocheck-chevrotain-types.ts",
7272
"copy": "copy-files-from-to",
7373
"postbuild": "tsc --project ./tsconfig.production.json && conc \"pnpm:add-glob-import-types\" \"pnpm:nocheck-chevrotain-types\" \"pnpm:copy\"",
74+
"test:ci": "vitest --run",
7475
"test": "vitest",
7576
"test:ui": "vitest --ui",
7677
"process-readme": "tsx ./scripts/process-readme",
@@ -81,7 +82,7 @@
8182
"bump-biome:nightly": "pnpm add -DE @biomejs/biome@nightly"
8283
},
8384
"devDependencies": {
84-
"@biomejs/biome": "2.3.9",
85+
"@biomejs/biome": "2.3.10",
8586
"@changesets/cli": "^2.29.8",
8687
"@commitlint/cli": "^20.2.0",
8788
"@commitlint/config-conventional": "^20.2.0",
@@ -90,9 +91,9 @@
9091
"@prettier/plugin-ruby": "^4.0.4",
9192
"@prettier/plugin-xml": "^3.4.2",
9293
"@stedi/prettier-plugin-jsonata": "^2.1.8",
93-
"@types/node": "^25.0.2",
94-
"@vitest/coverage-istanbul": "^4.0.15",
95-
"@vitest/ui": "^4.0.15",
94+
"@types/node": "^25.0.3",
95+
"@vitest/coverage-istanbul": "^4.0.16",
96+
"@vitest/ui": "^4.0.16",
9697
"@xml-tools/parser": "^1.0.11",
9798
"chevrotain": "7.1.1",
9899
"concurrently": "^9.2.1",
@@ -118,11 +119,11 @@
118119
"tsx": "^4.21.0",
119120
"typescript": "^5.9.3",
120121
"vite": "^7.3.0",
121-
"vitest": "^4.0.15"
122+
"vitest": "^4.0.16"
122123
},
123124
"dependencies": {
124125
"@types/estree": "^1.0.8",
125-
"dedent": "^1.7.0",
126+
"dedent": "^1.7.1",
126127
"micro-memoize": "^5.1.1",
127128
"package-up": "^5.0.0",
128129
"tiny-jsonc": "^1.0.2",

0 commit comments

Comments
 (0)