From 2f9f554e7862b3fb82a8dd88784f9a8a9f78fceb Mon Sep 17 00:00:00 2001 From: rvcas Date: Thu, 23 May 2024 21:16:13 -0400 Subject: [PATCH] feat: npm publish flow --- .github/workflows/npm.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/npm.yml diff --git a/.github/workflows/npm.yml b/.github/workflows/npm.yml new file mode 100644 index 00000000..40ead196 --- /dev/null +++ b/.github/workflows/npm.yml @@ -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}}