From 4cb813dd3e2e309042e9a5e78e22c1abd664d943 Mon Sep 17 00:00:00 2001 From: Guilherme Dantas Date: Mon, 4 Sep 2023 13:02:24 -0300 Subject: [PATCH] ci: publish package to npmjs --- .github/workflows/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..7dae1cfc --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,29 @@ +name: Publish package to npmjs +on: + push: + tags: + - v* +jobs: + publish: + runs-on: ubuntu-22.04 + defaults: + run: + working-directory: onchain/rollups + + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + + - uses: actions/setup-node@v3 + with: + node-version: "16" + registry-url: "https://registry.npmjs.org" + + - name: Install dependencies + run: yarn install + + - name: Publish package + run: yarn publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}