From 728ae0f23141987f3dd85552d81df572c2fbd182 Mon Sep 17 00:00:00 2001 From: Aashish Vivekanand Date: Mon, 30 Oct 2023 10:56:21 +0800 Subject: [PATCH] Added CI/CD to Publish Package --- .github/workflows/release.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..13d543b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,29 @@ +name: Node.js CI + +on: + push: + branches: + - release + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v2 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + registry-url: https://registry.npmjs.org/ + - run: npm ci + - run: npm run build + - run: npm test + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file