Skip to content

Commit

Permalink
chore: update github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
RJWadley committed Jan 27, 2025
1 parent ee1175c commit 531c52b
Show file tree
Hide file tree
Showing 3 changed files with 3,657 additions and 1,339 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i --ignore-scripts
- run: npm run lint:js
- run: npm run lint:prettier
- run: corepack enable
- run: corepack pnpm i
- run: corepack pnpm run lint:js
- run: corepack pnpm run lint:prettier

test:
needs: [lint]
Expand All @@ -19,19 +20,21 @@ jobs:
node-version: [18.x, 20.x]
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i --ignore-scripts
- run: npm run test
- run: corepack pnpm i
- run: corepack pnpm run test

coverage:
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i --ignore-scripts
- run: npm run test:coverage
- run: corepack enable
- run: corepack pnpm i
- run: corepack pnpm run test:coverage
- uses: codecov/codecov-action@v3

release:
Expand All @@ -43,8 +46,9 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- run: npm i --ignore-scripts
- run: npm run semantic-release
- run: corepack enable
- run: corepack pnpm i
- run: corepack pnpm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 1 addition & 4 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"**/*.js": [
"prettier --write",
"eslint"
]
"**/*.js": ["prettier --write", "eslint"]
}
Loading

0 comments on commit 531c52b

Please sign in to comment.