Skip to content

Commit

Permalink
Updated release
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwf committed Apr 10, 2024
1 parent f5cd86e commit 6c4cace
Showing 1 changed file with 19 additions and 23 deletions.
42 changes: 19 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,18 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '18.x'
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1

- uses: pnpm/action-setup@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn
- run: yarn install --frozen-lockfile --non-interactive
- run: yarn run build
- run: yarn run test
- run: node pkg-tests/node-load.js
- run: node pkg-tests/node-load.mjs
- run: node pkg-tests/node-umd.js
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- run: pnpm build
- run: pnpm run test
- run: pnpm run lint
- run: pnpm run typecheck

release:
needs: [build]
Expand All @@ -40,19 +37,18 @@ jobs:
uses: actions/setup-node@v2
with:
node-version: '18.x'

- name: Set tag
id: tagName
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v1

- uses: pnpm/action-setup@v3
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn
- run: yarn install --frozen-lockfile --non-interactive
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit 6c4cace

Please sign in to comment.