Skip to content

Update README.md

Update README.md #43

Workflow file for this run

name: "Test build release"
on:
push:
branches:
- master
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@v1
- name: Check for release commit
id: 'is_release_commit'
uses: /innovaccer/design-system/actions/check-release-commit@master
- uses: actions/setup-node@v1
if: steps.is_release_commit.outputs.result == 1
with:
node-version: '20.x'
- name: npm install
if: steps.is_release_commit.outputs.result == 1
run: npm install
- name: setup git
if: steps.is_release_commit.outputs.result == 1
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: git status
if: steps.is_release_commit.outputs.result == 1
run: git status
- name: stage changes
if: steps.is_release_commit.outputs.result == 1
run: git add package-lock.json
- name: commit changes
if: steps.is_release_commit.outputs.result == 1
run: |
echo $(git log -1 --pretty=format:%s)
git commit -m $(git log -1 --pretty=format:%s)
- name: bump module version
if: steps.is_release_commit.outputs.result == 1
run: npm version $(git log -1 --pretty=format:%s) -m "Released %s"
- name: push module tags to github
if: steps.is_release_commit.outputs.result == 1
run: git push https://${{ secrets.GH_TOKEN }}@github.com/$GITHUB_REPOSITORY.git HEAD:master --follow-tags
- name: generate .npmrc
if: steps.is_release_commit.outputs.result == 1
run: cp .npmrc.stub .npmrc
- name: Publish to npmjs
if: steps.is_release_commit.outputs.result == 1
run: npm publish --access public
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
- name: remove .npmrc
if: steps.is_release_commit.outputs.result == 1
run: rm -rf .npmrc
- name: deploy storybook
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
if: steps.is_release_commit.outputs.result == 1
run: npm run deploy-storybook -- --ci
- name: notify release
if: steps.is_release_commit.outputs.result == 1
uses: /innovaccer/mds-helpers/actions/notify-release@master
env:
GCHAT_PATH: ${{ secrets.GCHAT_PATH }}