Skip to content

Commit

Permalink
ci: deployment simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-solanki committed Nov 29, 2022
1 parent 0c57c00 commit b34b0ed
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
19 changes: 18 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,27 @@ jobs:
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2

- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: '18'
check-latest: true
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub # or changelogithub@0.12 if ensure the stable result
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i

- name: PNPM build
run: pnpm run build

- name: Publish to NPM
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
"private": true,
"scripts": {
"dev": "pnpm --filter @anu-vue/preset-theme-default stub && pnpm --filter anu-vue dev",
"build": "pnpm --filter @anu-vue/preset-theme-default build && pnpm --filter anu-vue build && pnpm --filter @anu-vue/nuxt build",
"build": "pnpm -r --filter=./packages/* run build",
"docs:dev": "pnpm --filter @anu-vue/documentation dev",
"docs:build": "pnpm --filter anu-vue build && pnpm --filter @anu-vue/documentation build",
"clean": "rimraf packages/anu-vue/dist && rimraf packages/anu-nuxt/dist && rimraf packages/preset-theme-default/dist",
"release": "bumpp package.json packages/**/package.json --execute 'pnpm build' && pnpm -r publish --no-git-checks",
"release": "bumpp package.json packages/**/package.json",
"lint": "pnpm --filter anu-vue lint",
"update:deps": "taze -r -w"
},
Expand Down

0 comments on commit b34b0ed

Please sign in to comment.