From 54a0bf98bf3f0277337266ef1b9eaf7509e2cd2a Mon Sep 17 00:00:00 2001 From: peterszeles Date: Mon, 19 Apr 2021 08:19:30 +0200 Subject: [PATCH] Github CICD actions setup --- .github/workflows/npm-publish.yml | 49 +++++++++++++++++++++------- .github/workflows/simple-publish.yml | 47 -------------------------- .github/workflows/tmplt.yml | 24 ++++++++++++++ package.json | 4 +-- 4 files changed, 63 insertions(+), 61 deletions(-) delete mode 100644 .github/workflows/simple-publish.yml create mode 100644 .github/workflows/tmplt.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 631d327..3df01f1 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,24 +1,49 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages -name: "cypress testing release" +name: Node.js Package on: - push: - branches: - - master + release: + types: [created] jobs: - release: - name: 🚀 release +# build: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v2 +# - uses: actions/setup-node@v2 +# with: +# node-version: 12 +# - run: npm ci +# - run: npm test + + publish-npm: +# needs: build runs-on: ubuntu-latest steps: - - name: checkout - uses: actions/checkout@v2 - - name: node - uses: actions/setup-node@v2 + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 with: node-version: 12 - registry-url: https://registry.npmjs.org + registry-url: https://registry.npmjs.org/ - name: 🚀 publish - run: npm publish --access public + - run: npm ci + - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + + publish-gpr: +# needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + - name: 🚀 publish + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/simple-publish.yml b/.github/workflows/simple-publish.yml deleted file mode 100644 index e7a3da5..0000000 --- a/.github/workflows/simple-publish.yml +++ /dev/null @@ -1,47 +0,0 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created -# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages - -name: Node.js Package - -on: - release: - types: [created] - -jobs: -# build: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v2 -# - uses: actions/setup-node@v2 -# with: -# node-version: 12 -# - run: npm ci -# - run: npm test - - publish-npm: -# needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 12 - registry-url: https://registry.npmjs.org/ - - name: 🚀 publish - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} - - publish-gpr: -# needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 12 - registry-url: https://npm.pkg.github.com/ - - name: 🚀 publish - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/tmplt.yml b/.github/workflows/tmplt.yml new file mode 100644 index 0000000..631d327 --- /dev/null +++ b/.github/workflows/tmplt.yml @@ -0,0 +1,24 @@ + +name: "cypress testing release" + +on: + push: + branches: + - master + +jobs: + release: + name: 🚀 release + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: node + uses: actions/setup-node@v2 + with: + node-version: 12 + registry-url: https://registry.npmjs.org + - name: 🚀 publish + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} diff --git a/package.json b/package.json index bbf674b..62bc66b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "cypress-cucumber-testing", - "version": "1.1.3", + "name": "@peterszeles/cypress-cucumber-testing", + "version": "1.1.4", "description": "DSL For Generic Functional testing", "main": "index.js", "scripts": {