From 95e0becdc7751819563ab7303c47be7bd79b9cdf Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Fri, 2 Feb 2024 00:28:21 +0400 Subject: [PATCH 1/2] .github: init npm publish ci workflow. --- .github/workflows/npm-publish-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/npm-publish-ci.yml diff --git a/.github/workflows/npm-publish-ci.yml b/.github/workflows/npm-publish-ci.yml new file mode 100644 index 000000000..c0123ad06 --- /dev/null +++ b/.github/workflows/npm-publish-ci.yml @@ -0,0 +1,27 @@ +name: Node.js Package +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm ci + - run: npm test + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} From cd4099d510494e2ed38bf22f58d8c3ca5d6a37a9 Mon Sep 17 00:00:00 2001 From: Narek Hovhannisyan Date: Fri, 2 Feb 2024 00:29:17 +0400 Subject: [PATCH 2/2] .github: update publish ci title. --- .github/workflows/npm-publish-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish-ci.yml b/.github/workflows/npm-publish-ci.yml index c0123ad06..704acc689 100644 --- a/.github/workflows/npm-publish-ci.yml +++ b/.github/workflows/npm-publish-ci.yml @@ -1,4 +1,4 @@ -name: Node.js Package +name: NPM Publish on: release: types: [created]