Skip to content

Commit

Permalink
chore(ci): updated npm-publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvuka1 committed Feb 23, 2024
1 parent b4dbc06 commit 7721b70
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
35 changes: 11 additions & 24 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Release
on: workflow_dispatch
on:
push:
branches:
- master

jobs:
release:
Expand All @@ -14,34 +17,18 @@ jobs:
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Setup Bun
uses: oven-sh/setup-bun@v1

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Install Dependencies
id: install
run: bun install

- name: Build
run: pnpm build
run: bun run build

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm semantic-release
run: bun run semantic-release
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 7721b70

Please sign in to comment.