Skip to content

Update release.yml

Update release.yml #25

Workflow file for this run

name: "publish fix"
on:
push:
branches:
- fix-action
workflow_dispatch:
permissions:
contents: read
packages: write
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 fix-action
- name: 🟒 node
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Authenticate to npm registry
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}
- 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
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}