Skip to content

Commit

Permalink
ci: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed Feb 10, 2023
1 parent e35f584 commit 3480dc4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
31 changes: 19 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,41 @@ jobs:
test:
name: Release
runs-on: ubuntu-20.04
container:
image: mcr.microsoft.com/playwright:v1.20.0-focal
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: 18

- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 7

- name: Install dependencies
run: yarn --frozen-lockfile
run: pnpm i

- name: Lint
run: yarn lint
run: pnpm lint

- name: Package module
run: yarn package
run: pnpm package

- name: Release
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
9 changes: 5 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3480dc4

Please sign in to comment.