File tree 3 files changed +16
-23
lines changed
3 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
12
12
# Update their versions and changelogs according to angular commit guidelines
13
13
# https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit
14
14
15
- # if [[ ! -z "${CORE_VERSION }" ]]; then
16
- # echo "Updating to @patternfly/patternfly: ${CORE_VERSION }"
17
- # npm pkg set dependencies.@patternfly/patternfly=${CORE_VERSION } --workspace @patternfly/react-docs
18
- # npm pkg set devDependencies.@patternfly/patternfly=${CORE_VERSION } --workspace @patternfly/react-core --workspace @patternfly/react-styles --workspace @patternfly/react-tokens --workspace @patternfly/react-icons
15
+ # if [[ ! -z "${RELEASE_VERSION }" ]]; then
16
+ # echo "Updating to @patternfly/patternfly: ${RELEASE_VERSION }"
17
+ # npm pkg set dependencies.@patternfly/patternfly=${RELEASE_VERSION } --workspace @patternfly/react-docs
18
+ # npm pkg set devDependencies.@patternfly/patternfly=${RELEASE_VERSION } --workspace @patternfly/react-core --workspace @patternfly/react-styles --workspace @patternfly/react-tokens --workspace @patternfly/react-icons
19
19
# fi
20
20
21
21
# publish to npm
Original file line number Diff line number Diff line change 1
- name : promote
1
+ name : Promote
2
2
on :
3
3
workflow_dispatch :
4
4
inputs :
5
- core -version :
6
- description : The PatternFly core version
5
+ release -version :
6
+ description : The version of PatternFly to promote to.
7
7
required : false
8
8
jobs :
9
9
deploy :
10
10
runs-on : ubuntu-latest
11
- env :
12
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
13
- CORE_VERSION : ${{ github.event.inputs.core-version }}
14
- RELEASE_VERSION : ${{ github.event.inputs.version }}
15
- GH_TOKEN : ${{ secrets.GH_TOKEN_REDALLEN }}
16
11
steps :
17
12
- name : Check out project
18
13
uses : actions/checkout@v4
19
14
with :
20
- # Needs to be an admin token to get around branch protection.
15
+ # Pass in an administrator token to get around branch protection.
21
16
token : ${{ secrets.GH_TOKEN_REDALLEN }}
22
17
23
18
- name : Set up and build project
27
22
28
23
- name : Deploy to NPM and Github
29
24
run : .github/promote.sh
25
+ env :
26
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
27
+ RELEASE_VERSION : ${{ github.event.inputs.release-version }}
Original file line number Diff line number Diff line change @@ -17,27 +17,22 @@ jobs:
17
17
name : Deploy release
18
18
runs-on : ubuntu-latest
19
19
needs : [ci, docs]
20
- env :
21
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
22
- # Needs to be an admin token to get around branch protection.
23
- GH_TOKEN : ${{ secrets.GH_TOKEN_REDALLEN }}
24
- GH_PR_TOKEN : ${{ secrets.GH_PR_TOKEN }}
25
20
steps :
26
21
- name : Check out project
27
22
uses : actions/checkout@v4
28
23
with :
24
+ # Fetch all history for all branches and tags, which is needed for the release script.
29
25
fetch-depth : 0
30
- # Needs to be an admin token to get around branch protection.
26
+ # Pass in an administrator token to get around branch protection.
31
27
token : ${{ secrets.GH_TOKEN_REDALLEN }}
32
28
33
- # Fetches all tags from 'origin' and updates local tags, only fetches the latest commit.
34
- - name : Fetch tags
35
- run : git fetch --depth=1 origin +refs/tags/*:refs/tags/*
36
-
37
29
- name : Set up and build project
38
30
uses : ./.github/actions/setup-project
39
31
with :
40
32
skip-build-cache : true
41
33
42
34
- name : Deploy to NPM and Github
43
35
run : .github/release.sh
36
+ env :
37
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
38
+ GH_PR_TOKEN : ${{ secrets.GH_PR_TOKEN }}
You can’t perform that action at this time.
0 commit comments