Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
loveakinlesi committed Sep 3, 2024
1 parent 6467258 commit 364c13e
Showing 1 changed file with 4 additions and 23 deletions.
27 changes: 4 additions & 23 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- 'v*.*.*'

jobs:
build-and-test:
build-test-release:
runs-on: ubuntu-latest

steps:
Expand All @@ -32,36 +32,17 @@ jobs:
- name: Build project
run: pnpm run prepublish

release:
needs: build-and-test
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install pnpm
run: |
corepack enable
corepack prepare pnpm@latest --activate
- name: Install dependencies
run: pnpm install

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
react-dynamic-fonts/dist/**
dist/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm publish --access public


0 comments on commit 364c13e

Please sign in to comment.