Skip to content

Merge pull request #85 from wethegit/dependabot/npm_and_yarn/vitejs/p… #67

Merge pull request #85 from wethegit/dependabot/npm_and_yarn/vitejs/p…

Merge pull request #85 from wethegit/dependabot/npm_and_yarn/vitejs/p… #67

name: Publish to NPM and Github Packages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Publish to NPM registry
# Setup .npmrc file on the fly
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}