mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
ci: update publish workflow (#1358)
* chore: set lerna changelogPreset * fix: version script * ci: update publish workflow
This commit is contained in:
parent
f84bc6eedd
commit
30218579cc
5 changed files with 8 additions and 4 deletions
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
|
@ -10,9 +10,12 @@ on:
|
|||
description: Pre ID
|
||||
required: true
|
||||
default: alpha
|
||||
append:
|
||||
description: Additional options
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
environment: release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
@ -32,7 +35,7 @@ jobs:
|
|||
- name: Publish to GitHub
|
||||
# add `no-verify-access` due to https://github.com/lerna/lerna/issues/2788
|
||||
run: |
|
||||
pnpm -- lerna publish -m "release: %s" --conventional-commits --preid=${{ github.event.inputs.preid }} --no-verify-access --create-release=github --yes ${{ github.event.inputs.semver }}
|
||||
pnpm lerna publish -m "release: %s" --conventional-commits --preid=${{ github.event.inputs.preid }} --no-verify-access --create-release=github --yes ${{ github.event.inputs.semver }}
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.BOT_PAT }}
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@ const { rules } = require('@commitlint/config-conventional');
|
|||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
rules: {
|
||||
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api']],
|
||||
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
|
||||
},
|
||||
};
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"version": "0.1.0",
|
||||
"npmClient": "pnpm",
|
||||
"useWorkspaces": true
|
||||
"useWorkspaces": true,
|
||||
"changelogPreset": "conventionalcommits"
|
||||
}
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"license": "MPL-2.0",
|
||||
"scripts": {
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"version": "pnpm i --frozen-lockfile=false && git add pnpm-lock.yaml",
|
||||
"lerna": "lerna",
|
||||
"bootstrap": "lerna bootstrap",
|
||||
"prepare": "if test \"$NODE_ENV\" != \"production\" && test \"$CI\" != \"true\" ; then husky install ; fi",
|
||||
|
|
|
@ -7,7 +7,6 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"version": "pnpm i --frozen-lockfile=false",
|
||||
"precommit": "lint-staged",
|
||||
"start": "parcel src/index.html",
|
||||
"dev": "cross-env PORT=5003 parcel src/index.html --public-url /demo-app --no-cache --hmr-port 6003",
|
||||
|
|
Loading…
Reference in a new issue