Skip to content

Commit

Permalink
build: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolateboy committed Jun 22, 2022
1 parent b2a8c46 commit 5f354aa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,18 @@ jobs:
uses: actions/checkout@v2

- name: set up node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18

- name: install
run: yarn install --prefer-offline

- name: test
run: yarn run prepublishOnly

- uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
- name: publish
uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
with:
access: public
token: ${{ secrets.NPM_TOKEN }}
19 changes: 4 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@ea548f2a2a08c55dcb111418ca62181f7887e297
uses: fkirc/skip-duplicate-actions@f75dd6564bb646f95277dc8c3b80612e46a4a1ea
with:
concurrent_skipping: 'same_content'
paths_ignore: '["**/*.md"]'
Expand All @@ -30,28 +30,17 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
node-version: [10, 12, 14]
node-version: [14, 16, 18]

steps:
- name: checkout
uses: actions/checkout@v2

- name: set up node v${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: get cache directory
id: get-yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)" # XXX don't single quote

- name: restore cache directory
id: restore-yarn-cache
uses: actions/cache@v2
with:
path: ${{ steps.get-yarn-cache.outputs.dir }}
key: ${{ matrix.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: ${{ matrix.os }}-yarn-
cache: yarn

- name: install
run: yarn install --prefer-offline --frozen-lockfile
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.1.4 - TBC

- bump dependencies

## 2.1.3 - 2020-08-31

- bump dependencies
Expand Down

0 comments on commit 5f354aa

Please sign in to comment.