Skip to content

Update main.yml

Update main.yml #8

Workflow file for this run

name: "publish fix"
on:
push:
branches:
- fix-action
workflow_dispatch:
jobs:
release:
name: πŸš€ publish
runs-on: ubuntu-latest
steps:
- name: πŸ“š checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all branches and tags
- name: Pull latest changes
run: git pull origin main
- name: 🟒 node
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Set up .npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
- run: npm install
- run: npm run build
- name: Automated Version Bump
uses: phips28/gh-action-bump-version@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit-message: 'CI: bumps version to {{version}} [skip ci]'
- name: πŸš€ publish
run: npm publish --access public --registry https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: 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