Skip to content

Commit

Permalink
E Updates github actions to use node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
jwloka committed Apr 13, 2024
1 parent d21a757 commit 4447264
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 53 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/continuous-build-multi.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: Continous Build Multi (Branch Lint, Build, Test)

on:
pull_request:
paths-ignore:
- '**.md'
- '**.txt'
workflow_dispatch:
pull_request:
paths-ignore:
- "**.md"
- "**.txt"
workflow_dispatch:

jobs:
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test
- run: pnpm build
build-lint-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test
- run: pnpm build
68 changes: 34 additions & 34 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@
name: Node.js Package

on:
push:
tags:
- v*
push:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test
- run: pnpm build
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm test
- run: pnpm build

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
scope: '@quatico'
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm publish-npm
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
scope: "@quatico"
- uses: pnpm/action-setup@v3
with:
version: 8
- run: pnpm install --frozen-lockfile
- run: pnpm publish-npm
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit 4447264

Please sign in to comment.