Skip to content

Commit

Permalink
build(workflow): update actions versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ph1p committed Nov 23, 2023
1 parent ef64e90 commit 270f230
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 36 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/test-and-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,11 @@ jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
- run: npm ci
- run: npm run build
- run: npm test
25 changes: 11 additions & 14 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,24 @@ jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
- run: npm ci
- run: npm run build
- run: npm test

release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v1
- name: Make stable release to npm
uses: epeli/npm-release@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
type: stable
token: ${{ secrets.NPM_TOKEN }}
node-version: 20
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 6 additions & 14 deletions .github/workflows/vercel-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,24 @@ jobs:
test:
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
- run: npm ci
- run: npm run build
- run: npm test

deploy:
runs-on: ubuntu-latest
needs: test
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: 20
- name: build
run: |
npm ci
Expand Down

0 comments on commit 270f230

Please sign in to comment.