Skip to content

Commit

Permalink
Add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sytten committed Jun 26, 2024
1 parent 3c6a853 commit c3ed0b6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Publish

on:
push:
branches:
- 'main'

jobs:
publish-js:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Publish
env:
NPM_TOKEN: ${{ secrets.NPM_BOT_TOKEN }}
run: pnpm -r publish --access public

0 comments on commit c3ed0b6

Please sign in to comment.