Skip to content

Commit

Permalink
feat: add release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Valerioageno committed May 2, 2024
1 parent 04cda90 commit e61ce7d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/release-on-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish package to npm
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

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

- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpm publish --filter ./packages/tuono
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion packages/tuono-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@babel/types": "^7.24.0",
"@types/babel__core": "^7.20.5",
"@types/node": "^20.12.7",
"router-generator": "workspace:*"
"tuono-routes-generator": "workspace:*"
},
"devDependencies": {
"@types/babel-traverse": "^6.25.10"
Expand Down

0 comments on commit e61ce7d

Please sign in to comment.