Merge pull request #178 from 0xshiba1/suilend-springsui-dep-updates #253
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
name: Publish | |
on: | |
push: | |
branches: [main] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: yarn | |
- name: Test | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Publish | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} | |
GIT_TOKEN: ${{ secrets.AUTOMATION_PAT_TOKEN }} | |
run: | | |
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc | |
git config --global user.name "MSafeAdmin" | |
git config --global user.email "[email protected]" | |
git fetch | |
git checkout main | |
git clean -df | |
git checkout . | |
git pull | |
npm version patch | |
git push --follow-tags --force | |
yarn publish --non-interactive --access public |