Skip to content

Commit 7c4afba

Browse files
release-botsamyakinnovaccer
authored andcommitted
Released v5.0.0-6
1 parent dbb52b4 commit 7c4afba

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/next.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
run: git checkout -b preparing-module-for-npm-publish && git config --global user.email "release-bot@innovaccer.com" && git config --global user.name "release-bot"
2424

2525
- name: bump module version
26-
run: node release.js
26+
run: npm version --no-commit-hooks prerelease -m "Released %s [skip ci]"
2727

2828
- name: generate .npmrc
2929
run: cp .npmrc.stub .npmrc
@@ -35,25 +35,22 @@ jobs:
3535

3636
- name: remove .npmrc
3737
run: rm -rf .npmrc
38-
38+
39+
40+
- name: push tag to github
41+
run: git push https://${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY.git $(node ./getVersion.js)
42+
3943
- name: remove css/dist dist/ from commit
4044
run: |
4145
git reset HEAD~1
4246
git add package.json
43-
git commit -m "Released $(node ./getVersion.js)" --no-verify
47+
git commit -m "Released $(node ./getVersion.js) [skip ci]" --no-verify
4448
4549
- name: push version to github
4650
run: git push https://${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY.git HEAD:next
47-
48-
- name: create and push tag
49-
run: |
50-
git tag -a $(node ./getVersion.js) -m "Released $(node ./getVersion.js)"
51-
git push https://${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY.git $(node ./getVersion.js)
5251

5352
- name: deploy storybook
54-
run: |
55-
echo "Starting storybook deployment..."
56-
npm run deploy-storybook -- --bucket-path=webui-mds-sb-next --aws-profile=NONE --ci --verbose
53+
run: npm run deploy-storybook -- --bucket-path=webui-mds-sb-next --aws-profile=NONE --ci
5754
env:
5855
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_KEY }}
5956
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_KEY_ID }}

0 commit comments

Comments
 (0)