Skip to content

Commit

Permalink
chore: update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Mar 8, 2024
1 parent a0870e3 commit 2837bcb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 16 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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: Node.js Package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install
run: npm ci
# - run: npm test
- name: Build
run: npm run build --if-present
- run: npm whoami
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
16 changes: 0 additions & 16 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,10 @@ jobs:
asset_path: ./styles.css
asset_name: styles.css
asset_content_type: text/css

# - run: npm whoami
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

notify:
needs: upload-build
uses: javalent/workflows/.github/workflows/notify.yml@main
secrets: inherit
with:
name: Fantasy Statblocks
repo: fantasy-statblocks


# upgrade-overload:
# needs: publish
# uses: javalent/obsidian-overload/.github/workflows/upgrade.yml@main
# secrets: inherit
# with:
# module: fantasy-statblocks

0 comments on commit 2837bcb

Please sign in to comment.