Skip to content

Commit

Permalink
chore: configure CI
Browse files Browse the repository at this point in the history
  • Loading branch information
macjuul committed Aug 27, 2024
1 parent e9b3292 commit d36d89c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 27 deletions.
26 changes: 14 additions & 12 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install pnpm
run: npm install -g pnpm

- name: Build packages
run: pnpm install --no-frozen-lockfile && pnpm build
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9

- name: Build packages
run: pnpm install --frozen-lockfile && pnpm build

- name: Run tests
run: pnpm test
- name: Run tests
run: pnpm test
32 changes: 17 additions & 15 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install pnpm
run: npm install -g pnpm
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 9

- name: Build packages
run: pnpm install --no-frozen-lockfile && pnpm build
- name: Build packages
run: pnpm install --frozen-lockfile && pnpm build

- name: Run tests
run: pnpm test
- name: Run tests
run: pnpm test

- name: Publish
run: pnpm publish -r
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: pnpm publish -r --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 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 d36d89c

Please sign in to comment.