Update actions.yml #61
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: Actions | |
on: | |
push: | |
branches: | |
- production | |
jobs: | |
# | |
# # # # # # # # # # # # # # # # # # # # # | |
# # # # # # # # # # # # # # # # # # # # # | |
publish: | |
name: 'Publish to NPM' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Setup NodeJS | |
uses: actions/setup-node@main | |
with: | |
node-version: 'current' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Enable corepack | |
run: corepack enable | |
working-directory: . | |
- name: Setup yarn | |
run: yarn set version stable | |
working-directory: . | |
- name: Install yarn | |
run: yarn install | |
working-directory: . | |
- name: Install dependencies | |
run: yarn install | |
working-directory: . | |
- name: Bump package version | |
run: npx @helperkits/bumper bump | |
working-directory: . | |
- name: Build package | |
run: yarn build | |
working-directory: . | |
- name: Publish package to NPM | |
run: yarn npm publish --access public | |
working-directory: . | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |