feat: add release pipeline

This commit is contained in:
Valerio Ageno
2024-05-02 19:22:09 +02:00
parent 04cda90943
commit c609f612b2
4 changed files with 40 additions and 3 deletions
+36
View File
@@ -0,0 +1,36 @@
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
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- name: Install dependencies
run: pnpm install
- name: Install turbo
run: pnpm install turbo --global
- name: Build
run: pnpm build
- name: Publish
run: pnpm publish --no-git-checks --filter ./packages/tuono
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
+1 -1
View File
@@ -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"
+1 -1
View File
@@ -1,5 +1,5 @@
import { fileURLToPath, pathToFileURL } from 'url'
import { routeGenerator } from 'router-generator'
import { routeGenerator } from 'tuono-routes-generator'
import { normalize } from 'path'
// eslint-disable-next-line sort-imports
+2 -1
View File
@@ -28,7 +28,8 @@
},
"files": [
"dist",
"src"
"src",
"README.md"
],
"sideEffects": false,
"keywords": [],