feat: npm publish flow

This commit is contained in:
rvcas 2024-05-23 21:16:13 -04:00
parent cb4c01f46b
commit 2f9f554e78
No known key found for this signature in database
GPG Key ID: C09B64E263F7D68C
1 changed files with 19 additions and 0 deletions

19
.github/workflows/npm.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: npm
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: 📦 Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "latest"
- name: 🚀 Publish
run: npm publish https://github.com/aiken-lang/aiken/releases/latest/download/aiken-npm-package.tar.gz --access public
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}