Skip to content

Commit 83a5359

Browse files
committed
ci: core publish workflow fix
1 parent fff94b6 commit 83a5359

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/npm_release_core.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,19 @@ jobs:
6363
YARN_ENABLE_IMMUTABLE_INSTALLS: false
6464

6565

66-
- name: publish auto
67-
if: github.event.inputs.release_type == 'auto'
66+
- name: bump release auto
67+
if: github.event.inputs.release_type == 'auto'
6868
run: |
69-
npm run core:publish -- --no-verify-access --no-private --no-commit-hooks --yes
70-
git push --tags
71-
env:
72-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
73-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
npm run core:changelog --
7570
7671
- name: publish
7772
if: github.event.inputs.release_type != 'auto'
7873
run: |
79-
npm run core:publish -- --no-verify-access --no-private --no-commit-hooks --yes --bump ${{ github.event.inputs.release_type }}
74+
npm run core:changelog -- --release-as ${{ github.event.inputs.release_type }}
75+
76+
- name: publish
77+
run: |
78+
npm run core:publish -- --no-verify-access --no-private --no-commit-hooks --yes
8079
git push --tags
8180
env:
8281
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"core:test": "jest --config packages/core/jest.config.ts",
3131
"core:unit": "cd packages/core/__tests__ ; tsc ; mocha",
3232
"core:unit.watch": "cd packages/core/__tests__ ; tsc ; mocha --watch",
33-
"core:publish": "cd packages/core && npx standard-version --tag-prefix @akylas/nativescript@ && cd ../.. && npm run core:build.full && lerna publish from-package --scope @akylas/nativescript",
33+
"core:changelog": "cd packages/core && npx standard-version --tag-prefix @akylas/nativescript@",
34+
"core:publish": "npm run core:build.full && lerna publish from-package --scope @akylas/nativescript",
3435
"core-compat:build": "cd packages/core-compat ; rimraf node_modules package-lock.json ; $npm_package_config_npm_alias i ; tsc -p tsconfig.json ; mv \"$(npm pack | tail -n 1)\" ../../dist/packages/tns-core-modules.tgz",
3536
"doc:build": "rimraf dist/api-reference; npx typedoc --tsconfig ./tools/scripts/tsconfig.typedoc.json",
3637
"types-ios:lint": "cd packages/types-ios ; eslint -c .eslintrc --ignore-pattern **/node_modules/** --ignore-pattern !packages/types-ios/**",

0 commit comments

Comments
 (0)