Skip to content

Commit

Permalink
chore: update the changeset
Browse files Browse the repository at this point in the history
  • Loading branch information
chaqchase committed Aug 26, 2024
1 parent 04528fd commit 9f120e1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 25 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,27 @@ on:

jobs:
test:
name: Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]

runs-on: ${{ matrix.os }}
name: Test and Lint
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: pnpm/action-setup@v2.2.2
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 6.34.0
- uses: actions/setup-node@v2
version: 8
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
node-version: 18
cache: 'pnpm'

- name: Install Dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Run Linter
run: pnpm lint

- name: Run Tests
run: pnpm test

- name: Build
run: pnpm build
27 changes: 16 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,32 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

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

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

- name: Install Dependencies
run: pnpm i
run: pnpm install --frozen-lockfile

- name: Create Release PR or Publish Packages
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: pnpm release
version: pnpm version
commit: 'chore: update package versions'
title: 'chore: update package versions'
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Send a Slack notification if a publish happens
if: steps.changesets.outputs.published == 'true'
run: my-slack-bot send-notification --message "A new version of ${GITHUB_REPOSITORY} was published!"

0 comments on commit 9f120e1

Please sign in to comment.