Skip to content

Commit

Permalink
Define NODE_VERSION as variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalre committed Apr 4, 2023
1 parent f9c6a3b commit 7e5503c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: github-action

on:
push:
branches:
- '*'
pull_request:
branches:
- '*'

env:
NODE_VERSION: 16

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -16,7 +21,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{env.NODE_VERSION}}

- name: install
run: |
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
name: publish

on:
push:
tags:
- '*'

env:
NODE_VERSION: 16

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: ${{env.NODE_VERSION}}

- name: Install dependencies
run: npm i
Expand Down

0 comments on commit 7e5503c

Please sign in to comment.