Skip to content

Commit

Permalink
ci: Updated nodejs version in the workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Jul 11, 2022
1 parent b0883f3 commit dce92ef
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3.3.0
with:
node-version: 12.x
node-version: 16.x

- name: Get npm cache directory
id: npm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3.3.0
with:
node-version: 12.x
node-version: 16.x

- name: Get npm cache directory
id: npm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3.3.0
with:
node-version: 12.x
node-version: 16.x

- name: Get npm cache directory
id: npm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3.3.0
with:
node-version: 12.x
node-version: 16.x
registry-url: 'https://registry.npmjs.org'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,24 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3.3.0
with:
node-version: 14.x
node-version: 16.x

- name: Get yarn cache directory
id: yarn-cache
- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(yarn cache dir)"
- name: Setup yarn cache
echo "::set-output name=dir::$(npm config get cache)"
- name: Setup npm cache
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-node-
- name: Install Dependencies
run: yarn install
run: npm ci || npm install
env:
PUPPETEER_SKIP_DOWNLOAD: true

- name: Release
run: 'npx release-it --increment ${{ github.event.inputs.increment }}'

0 comments on commit dce92ef

Please sign in to comment.