Skip to content
This repository has been archived by the owner on Jul 4, 2024. It is now read-only.

Rename Github workflow #4

Rename Github workflow

Rename Github workflow #4

Workflow file for this run

name: Build and Publish
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
check-latest: true
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: startsWith(github.ref, 'refs/tags/v')