Skip to content

mrthiti publish v0.1.0-beta.6 to npmjs.org. 🚀🚀🚀 #9

mrthiti publish v0.1.0-beta.6 to npmjs.org. 🚀🚀🚀

mrthiti publish v0.1.0-beta.6 to npmjs.org. 🚀🚀🚀 #9

Workflow file for this run

name: Publish to npmjs.org.
run-name: ${{ github.actor }} publish ${{ github.ref_name }} to npmjs.org. 🚀🚀🚀
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
publish:
name: Publish to npmjs.org
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup Nodejs
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Install dependencies
run: npm i
- name: Run eslint
run: npm run lint
- name: Run prettier:check
run: npm run prettier:check
- name: Run test
run: npm run test:coverage
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
git-branch: main
- name: Build
run: npm run build
- name: Publish ${{ github.ref_name }} to npmjs.org 🚀🚀🚀
run: npm publish