Skip to content

v0.7.0

v0.7.0 #25

Workflow file for this run

name: Publish to NPM
on:
release:
types: [created]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: πŸ— Setup repo
uses: actions/checkout@v4
- name: πŸ€ Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: πŸ“¦ Install dependencies
run: yarn
- name: πŸ› οΈ Build
run: yarn build
- name: πŸš€ Publish package to NPM repository
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: πŸ› οΈ Build dev
run: yarn build:dev
- name: πŸš€ Publish dev package to NPM repository
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}