Skip to content

Commit

Permalink
Add GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Oct 2, 2024
1 parent 1681a39 commit 71e51d9
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release builds to npm

on:
push:
tags:
- "v*"

jobs:
release:
name: Release builds to npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 9
run_install: false
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
env:
NODE_ENV: production
run: pnpm run build

- name: Publish to npm
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,3 @@ moonmap.addExport(name, "ExportName", {
find: "something to look for"
});
```

## TODO

- [x] Publish
- [ ] Release to NPM

0 comments on commit 71e51d9

Please sign in to comment.