From fca22ac234c73fe37ed07266e87c384ace653339 Mon Sep 17 00:00:00 2001 From: carlos Date: Sat, 4 Jun 2022 16:10:19 -0400 Subject: [PATCH] feat: adding github workflow --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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 0000000..7a7669b --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: "release" + +on: + release: + types: [published] + +jobs: + release: + name: 🚀 release + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2.4.2 + - name: node + uses: actions/setup-node@v3.2.0 + with: + node-version: 12 + registry-url: https://registry.npmjs.org + - name: publish + run: npm publish --access public + working-directory: my-package + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}