-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
91e98d3
commit 4052725
Showing
2 changed files
with
62 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: "Release next" | ||
on: | ||
push: | ||
branches: | ||
- next | ||
jobs: | ||
release: | ||
# uncomment next line as soon as visual tesing starts working | ||
# needs: visual_test | ||
name: Release tag | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '14.x' | ||
|
||
- name: npm install | ||
run: npm ci | ||
|
||
- name: setup git | ||
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" | ||
|
||
- name: bump module version | ||
run: npm version --no-commit-hooks prerelease -m "Released %s [skip ci]" | ||
|
||
- name: gnerate .npmrc | ||
run: cp .npmrc.stub .npmrc | ||
|
||
- name: Publish to npmjs | ||
run: npm publish --access public --tag=next | ||
env: | ||
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | ||
|
||
- name: remove .npmrc | ||
run: rm -rf .npmrc | ||
|
||
- name: push tag to github | ||
run: git push https://${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY.git $(node ./getVersion.js) | ||
|
||
- name: remove css/dist dist/ from commit | ||
run: | | ||
git reset HEAD~1 | ||
git add package.json | ||
git commit -m "Released $(node ./getVersion.js) [skip ci]" --no-verify | ||
- name: push version to github | ||
run: git push https://${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY.git HEAD:next | ||
|
||
- name: deploy storybook | ||
run: npm run deploy-storybook -- --bucket-path=webui-mds-sb-next --aws-profile=NONE --ci | ||
env: | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_KEY }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_KEY_ID }} | ||
AWS_REGION: ${{ secrets.DOCS_REGION }} | ||
|
||
- name: notify release | ||
uses: /innovaccer/design-system/actions/notify-release@next | ||
env: | ||
GCHAT_PATH: ${{ secrets.GCHAT_PATH }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters