Skip to content

Commit

Permalink
chore: update github actions (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed Dec 8, 2023
1 parent b87fc81 commit e6ec10c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 18 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18.x'
- uses: actions/cache@v3
with:
path: .yarn/cache
key: yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-
cache: yarn
node-version: '20.x'
- run: yarn --immutable
- run: yarn lint
- run: yarn format:check
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,16 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '20.x'
cache: yarn
registry-url: 'https://registry.npmjs.org'
- run: yarn --immutable
- name: npm version
working-directory: src
Expand All @@ -28,14 +33,12 @@ jobs:
- run: git show HEAD
- run: yarn build
- run: yarn docs
- name: npm login
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: |
npm whoami
- run: npm publish --access=public
npm publish --access=public --provenance
working-directory: dist/package
- name: npm logout
run: rm ~/.npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: git push origin master v${{ inputs.version }}
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set Node.js version
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '20.x'
- run: yarn set version stable
- run: yarn install --no-immutable
- run: yarn up --caret '**'
Expand Down

0 comments on commit e6ec10c

Please sign in to comment.