Skip to content

Commit 8a2472b

Browse files
committed
ci: try fix bump version
1 parent e22ea8c commit 8a2472b

File tree

2 files changed

+42
-37
lines changed

2 files changed

+42
-37
lines changed

.github/workflows/bump-version.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@ on:
2020
secrets:
2121
NPM_TOKEN:
2222
required: true
23-
GITHUB_TOKEN_SECRET:
23+
GITHUB_TOKEN:
2424
required: true
2525
PAT:
2626
required: true
2727

2828
env:
2929
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN_SECRET }}
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3131
NPM_CONFIG_PROVENANCE: true
3232

3333
jobs:
3434
bump-version:
3535
runs-on: ubuntu-latest
36+
permissions:
37+
contents: "write"
38+
actions: "read"
39+
id-token: "write"
3640
steps:
3741
- name: Checkout repository
3842
uses: actions/checkout@v4

.github/workflows/new-release.yml

+36-35
Original file line numberDiff line numberDiff line change
@@ -91,48 +91,49 @@ jobs:
9191
project3: ${{ github.event.inputs.project3 }}
9292
project4: ${{ github.event.inputs.project4 }}
9393

94-
test:
95-
needs: [compute-projects]
96-
uses: ./.github/workflows/test.yml
97-
with:
98-
mainBranch: "last-tag"
99-
secrets:
100-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
101-
102-
e2e-test:
103-
needs: [test]
104-
uses: ./.github/workflows/e2e-test.yml
105-
with:
106-
mainBranch: "last-tag"
107-
secrets:
108-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
109-
110-
build:
111-
needs: [test, e2e-test]
112-
uses: ./.github/workflows/build.yml
113-
with:
114-
mainBranch: "last-tag"
115-
secrets:
116-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
117-
118-
upload-badge:
119-
needs: [ test, e2e-test ]
120-
uses: ./.github/workflows/upload-badge.yml
121-
with:
122-
mainBranch: "last-tag"
123-
secrets:
124-
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
125-
GIST_SECRET: ${{ secrets.GIST_SECRET }}
126-
GIST_ID: ${{ secrets.GIST_ID }}
94+
# test:
95+
# needs: [compute-projects]
96+
# uses: ./.github/workflows/test.yml
97+
# with:
98+
# mainBranch: "last-tag"
99+
# secrets:
100+
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
101+
#
102+
# e2e-test:
103+
# needs: [test]
104+
# uses: ./.github/workflows/e2e-test.yml
105+
# with:
106+
# mainBranch: "last-tag"
107+
# secrets:
108+
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
109+
#
110+
# build:
111+
# needs: [test, e2e-test]
112+
# uses: ./.github/workflows/build.yml
113+
# with:
114+
# mainBranch: "last-tag"
115+
# secrets:
116+
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
117+
#
118+
# upload-badge:
119+
# needs: [ test, e2e-test ]
120+
# uses: ./.github/workflows/upload-badge.yml
121+
# with:
122+
# mainBranch: "last-tag"
123+
# secrets:
124+
# NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
125+
# GIST_SECRET: ${{ secrets.GIST_SECRET }}
126+
# GIST_ID: ${{ secrets.GIST_ID }}
127127

128128
bump-version:
129-
needs: [build]
129+
# needs: [build]
130+
needs: [compute-projects]
130131
uses: ./.github/workflows/bump-version.yml
131132
with:
132133
projects: ${{ needs.compute-projects.outputs.finalProjects }}
133134
beta-release: ${{ fromJSON(github.event.inputs.beta-release) }}
134135
dry-run: ${{ fromJSON(github.event.inputs.dry-run) }}
135136
secrets:
136137
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
137-
GITHUB_TOKEN_SECRET: ${{ secrets.GITHUB_TOKEN }}
138+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138139
PAT: ${{secrets.PAT}}

0 commit comments

Comments
 (0)