Skip to content

Update actions.yml

Update actions.yml #61

Workflow file for this run

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 }}