Skip to content

Commit

Permalink
chore: add release please
Browse files Browse the repository at this point in the history
  • Loading branch information
arealmaas committed Oct 30, 2024
1 parent 6fa7257 commit 836817f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-cd-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ jobs:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .node-version
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci
- run: pnpm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
- run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
16 changes: 5 additions & 11 deletions .github/workflows/ci-cd-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version-file: .node-version

- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: '9.9.0'
version: '8.15.4'

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

- name: Lint
run: pnpm biome check ./lib
# todo: fix lint issues and enable
# - name: Lint
# run: pnpm biome check ./lib

- name: Type check
run: pnpm typecheck
Expand All @@ -36,10 +37,3 @@ jobs:

- name: Build Storybook
run: pnpm build-storybook

# Cache Storybook build for potential deployment or other jobs
- name: Cache Storybook build
uses: actions/cache@v4
with:
path: storybook-static
key: storybook-${{ github.sha }}
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.15.1

0 comments on commit 836817f

Please sign in to comment.