From 770eb570521eb137adf29f09ece8f76a37d151b6 Mon Sep 17 00:00:00 2001 From: Nicolas Lebrun <nclslbrn@gmail.com> Date: Wed, 22 May 2024 20:18:59 +0200 Subject: [PATCH] Create npm-publish.yml --- .github/workflows/npm-publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..e654bc9 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,18 @@ +- name: NPM Publish + uses: JS-DevTools/npm-publish@v3.1.1on: + 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 }}