0.1.2 #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Package | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish-package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Print NPM version 🌎 | |
run: npm --version | |
- name: Install the dependencies 🧱 | |
run: npm ci | |
- name: Test the package 🔧 | |
run: npm run test | |
- name: Build the package 🔨 | |
run: npm run build | |
- name: Deploy to npm 🚀 | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} | |
npm publish --workspaces true --access=public |