55 push :
66 branches :
77 - " main"
8- pull_request :
9- types : [opened, reopened, ready_for_review, synchronize, edited]
10-
118permissions :
129 contents : write
1310 packages : write
@@ -33,27 +30,28 @@ jobs:
3330 with :
3431 node-version : 20
3532 cache : " npm"
36- # - name: Install dependencies
37- # run: |
38- # echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
39- # echo "@SolaceDev:registry=https://npm.pkg.github.com/" >> .npmrc
40- # echo "legacy-peer-deps=true" >> .npmrc
41- # npm ci && npm --prefix storybook i
33+
34+ - name : Install dependencies
35+ run : |
36+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc
37+ echo "@SolaceDev:registry=https://npm.pkg.github.com/" >> .npmrc
38+ echo "legacy-peer-deps=true" >> .npmrc
39+ npm ci && npm --prefix storybook i
4240 env :
4341 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4442 NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }} # need this for npm package.
4543 # 👇 Adds Chromatic as a step in the workflow
4644
47- # - name: Publish to Chromatic
48- # # publish
49- # uses: chromaui/action@latest
50- # # Chromatic GitHub Action options
51- # with:
52- # # 👇 Chromatic projectToken, refer to the manage page to obtain it.
53- # projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
54- # # storybook directory
55- # workingDir: storybook
56- # exitZeroOnChanges: false
45+ - name : Publish to Chromatic
46+ # publish
47+ uses : chromaui/action@latest
48+ # Chromatic GitHub Action options
49+ with :
50+ # 👇 Chromatic projectToken, refer to the manage page to obtain it.
51+ projectToken : ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
52+ # storybook directory
53+ workingDir : storybook
54+ exitZeroOnChanges : false
5755
5856 - name : Run FOSSA Scan
5957 uses :
fossas/[email protected] # Use a specific version if locking is preferred @@ -71,30 +69,31 @@ jobs:
7169 whitesource_project_name : ${{ github.event.repository.name }}
7270 target_directory : " ."
7371
74- # bump-version:
75- # needs: chromatic-deployment
76- # name: "Bump Version on main"
77- # runs-on: ubuntu-latest
78- # steps:
79- # - name: "Checkout source code"
80- # uses: "actions/checkout@v4"
81- # with:
82- # ref: ${{ github.ref }}
83- # token: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
72+ bump-version :
73+ needs : chromatic-deployment
74+ name : " Bump Version on main"
75+ runs-on : ubuntu-latest
76+ steps :
77+ - name : " Checkout source code"
78+ uses : " actions/checkout@v4"
79+ with :
80+ ref : ${{ github.ref }}
81+ token : ${{ secrets.COMMIT_KEY }}
82+ fetch-depth : 0
8483
85- # - name: "cat package.json"
86- # run: cat ./package.json
84+ - name : " cat package.json"
85+ run : cat ./package.json
8786
88- # - name: "Automated Version Bump"
89- # uses: "phips28/gh-action-bump-version@master"
90- # with:
91- # minor-wording: "solaceminor,SolaceMinor,SOLACEMINOR"
92- # major-wording: "solacemajor,SolaceMajor,SOLACEMAJOR"
93- # patch-wording: "solacepatch,SolacePatch,SOLACEPATCH"
94- # tag-prefix: ""
95- # commit-message: "CI: bumps version to {{version}} [skip ci]" # Add skip ci tag
96- # env:
97- # #Required for version bumping and by-passing branch protection
98- # GITHUB_TOKEN: ${{ secrets.PACKAGES_ADMIN_TOKEN }}
99- # - name: "cat package.json"
100- # run: cat ./package.json
87+ - name : " Automated Version Bump"
88+ uses : " phips28/gh-action-bump-version@master"
89+ with :
90+ minor-wording : " solaceminor,SolaceMinor,SOLACEMINOR"
91+ major-wording : " solacemajor,SolaceMajor,SOLACEMAJOR"
92+ patch-wording : " solacepatch,SolacePatch,SOLACEPATCH"
93+ tag-prefix : " "
94+ commit-message : " CI: bumps version to {{version}} [skip ci]" # Add skip ci tag
95+ env :
96+ # Required for version bumping and by-passing branch protection
97+ GITHUB_TOKEN : ${{ secrets.COMMIT_KEY }}
98+ - name : " cat package.json"
99+ run : cat ./package.json
0 commit comments