Skip to content

dont checkout to main (will already be there in the action) #3

dont checkout to main (will already be there in the action)

dont checkout to main (will already be there in the action) #3

Workflow file for this run

name: Publish Package to npmjs
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
- name: Configure git credentials
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "Github Actions"
- run: yarn version --patch
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Commit and push changes
run: |
git add package.json
git commit -m '[Automated commit] Bump version'
git push --tags