Skip to content

Commit edb7d5e

Browse files
authored
ci: fix github releases (#586)
Use semver options to push first just created version
1 parent b7b52a0 commit edb7d5e

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.github/workflows/integration-test-nx-workspace.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
echo "Using provided value for nx-version parameter: ${{ inputs.nx-version }}"
3636
echo "NX_VERSION=${{ inputs.nx-version }}" >> $GITHUB_ENV
3737
fi
38+
echo $NX_VERSION
3839
3940
- name: Integration Test
4041
run: npx nx create-nx-workspace ngx-deploy-npm -- $NX_VERSION

.github/workflows/publishment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Push to protected branch
8181
uses: CasperWA/push-protected@v2.15.0
8282
with:
83-
token: ${{ secrets.MANAGE_REPO_TOKEN }}
83+
token: ${{ secrets.GITHUB_TOKEN }}
8484
ref: ${{ github.ref }}
8585
tags: true
8686
unprotect_reviews: true

packages/ngx-deploy-npm/project.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@
8282
"version": {
8383
"executor": "@jscutlery/semver:version",
8484
"options": {
85+
"push": true,
86+
"noVerify": true,
8587
"postTargets": ["build", "deploy", "github"],
8688
"versionTagPrefix": "v"
8789
}

0 commit comments

Comments
 (0)