From 6357e3e2ea22353429175e8bc207a5bcff3045f1 Mon Sep 17 00:00:00 2001 From: Iulian-Constantin Marcu Date: Tue, 28 Nov 2023 16:08:34 +0000 Subject: [PATCH] feat: add publishing action --- .github/workflows/publish.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..badadc7 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,17 @@ +on: + push: + branches: main + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: '20' + - run: npm ci + - run: npm test + - uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_TOKEN }}