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 obsidian-callouts-markdown Package | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build-and-publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org/' | |
- name: Install Dependencies | |
run: yarn workspace obsidian-callouts-markdown install --frozen-lockfile | |
- name: Move README.md to Package | |
run: cp README.md packages/obsidian-callouts-markdown/ | |
- name: Build obsidian-callouts-markdown package | |
run: yarn workspace obsidian-callouts-markdown build | |
- name: Publish to NPM | |
run: | | |
cd packages/obsidian-callouts-markdown | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |