Skip to content

Commit

Permalink
ci: APPS-2409 npm next release (#377)
Browse files Browse the repository at this point in the history
ci: publish vue3.x as next release candidate
  • Loading branch information
pghorpade authored Aug 25, 2023
1 parent d5b320b commit 7fe585b
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
name: Release
on:
push:
branches: [main]
branches:
- main
- vue3.x

jobs:
release:
name: Release
Expand All @@ -13,16 +16,16 @@ jobs:
fetch-depth: 0
persist-credentials: false
token: ${{ secrets.GH_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
node-version: '16.15.0'
version: 8
- name: Install dependencies
run: npm ci
run: pnpm install
- name: Install semantic-release extra plugins
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
run: pnpm install --save-dev @semantic-release/changelog @semantic-release/git
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: pnpm dlx semantic-release
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"name": "ucla-library-website-components-vue3.x",
"private": false,
"version": "0.0.0",
"version": "3.0.0-development",
"type": "module",
"main": "dist/ucla-library-website-components.cjs.js",
"module": "dist/ucla-library-website-components.es.js",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/UCLALibrary/ucla-library-website-components.git"
},
"author": "Parinita Mulak",
"license": "MIT",
"scripts": {
"dev": "vite",
"serve": "vite --config vite.config.serve.js ",
Expand All @@ -25,7 +31,7 @@
"percy": "percy storybook http://localhost:6006",
"percy-static": "percy storybook ./storybook-static",
"prebuild": "rimraf ./dist",
"prepublishOnly": "npm run build"
"prepublishOnly": "pnpm run build"
},
"peerDependencies": {
"vue": "^3.3.4"
Expand Down
13 changes: 10 additions & 3 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
module.exports = {
branches: ["main"],
branches: [
"main",
{
name: "vue3.x",
prerelease: true,
channel: "next",
},
],
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand All @@ -17,10 +24,10 @@ module.exports = {
assets: [
"CHANGELOG.md",
"dist/*",
"src/lib-components/*",
"src/components/*",
"src/styles/*",
"package.json",
"package-lock.json",
"pnpm-lock.yaml",
],
message:
"chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
Expand Down

0 comments on commit 7fe585b

Please sign in to comment.