Skip to content

Commit

Permalink
chore: Update node
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns authored and gitbutler-client committed Jul 26, 2024
1 parent bd4bb94 commit a14b06b
Show file tree
Hide file tree
Showing 4 changed files with 9,373 additions and 3,666 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,32 @@ on:
jobs:
test-and-release:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
if: "!contains(github.event.head_commit.message, '[skip ci]')"

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 22.x]

steps:
- name: 🛑 Cancel Previous Runs
uses: styfle/cancel-workflow-action@a40b8845c0683271d9f53dfcb887a7e181d3918b # pin@0.9.1
- name: ⬇️ Checkout repo
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # pin@v2
uses: actions/checkout
- name: ⎔ Setup node ${{ matrix.node-version }}
uses: actions/setup-node@7c12f8017d5436eb855f1ed4399f037a36fbd9e8 # pin@v2
uses: actions/setup-node
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: 🗄 Cache node_modules
id: cache-node_modules
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # pin@v2
uses: actions/cache
with:
path: "**/node_modules"
key: node_modules-${{ runner.os }}-node-${{ matrix.node-version }}-${{
hashFiles('**/package-lock.json') }}
- name: 🗄 Cache .eslintcache
uses: actions/cache@8492260343ad570701412c2f464a5877dc76bace # pin@v2
uses: actions/cache
with:
path: .eslintcache
key: eslintcache-${{ runner.os }}-node-${{ matrix.node-version }}-${{
Expand All @@ -50,15 +51,14 @@ jobs:
env:
CI: true
- name: ⬆️ Upload coverage report
uses: coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057 # pin@1.1.3
uses: coverallsapp/github-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 🚀 Release
if: "contains(' refs/heads/main refs/heads/beta ', github.ref) &&
matrix.node-version == '20.x'"
matrix.node-version == '22.x'"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm install @semantic-release/changelog @semantic-release/git --ignore-scripts --no-save
npx semantic-release
npm run release
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.9.0
v22.5.1
Loading

0 comments on commit a14b06b

Please sign in to comment.