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

Deprecated - v1.1.6 #12

Deprecated - v1.1.6

Deprecated - v1.1.6 #12

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: 📦 Publish to NPM
on:
release:
types: [created]
jobs:
publish-npm:
name: 🚀 Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: 🧶 Install dependencies
uses: borales/actions-yarn@v4
with:
cmd: install
- run: npm run build
name: 🏗️ Build
- run: npm publish
name: 📦 Publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}