diff --git a/.github/workflows/npm-build.yml b/.github/workflows/npm-build.yml index c766997..61a9f08 100644 --- a/.github/workflows/npm-build.yml +++ b/.github/workflows/npm-build.yml @@ -1,38 +1,38 @@ name: Node.js Build on: - push: - branches: - - master - - feature-ci - pull_request: - branches: - - master - - feature-ci - page_build: - release: - types: - - created + push: + branches: + - master + - feature-ci + pull_request: + branches: + - master + - feature-ci + page_build: + release: + types: + - created jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - - run: npm install - - run: npm run lint - - run: npm run test - - name: Setup sonarqube - uses: warchant/setup-sonar-scanner@v3 - - name: Run sonarqube - env: - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} - run: sonar-scanner - -Dsonar.sources=. - -Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** - -Dsonar.login=${{ secrets.SONAR_TOKEN }} - -Dsonar.host.url=https://sonarcloud.io - -Dsonar.projectKey=convert-postman-jmeter + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 20 + - run: npm install + - run: npm run lint + - run: npm run test + - name: Setup sonarqube + uses: warchant/setup-sonar-scanner@v3 + - name: Run sonarqube + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + run: sonar-scanner + -Dsonar.sources=. + -Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** + -Dsonar.login=${{ secrets.SONAR_TOKEN }} + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.projectKey=convert-postman-jmeter diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 0fce8c7..06bc6c6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,47 +1,47 @@ name: Node.js Publish on: - push: - branches: - - 'release/**' - page_build: - release: - types: - - published + push: + branches: + - 'release/**' + page_build: + release: + types: + - published jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - - run: npm install - - run: npm run lint - - run: npm run test - - name: Setup sonarqube - uses: warchant/setup-sonar-scanner@v3 - - name: Run sonarqube - env: - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} - run: sonar-scanner - -Dsonar.sources=. - -Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** - -Dsonar.login=${{ secrets.SONAR_TOKEN }} - -Dsonar.host.url=https://sonarcloud.io - -Dsonar.projectKey=convert-postman-jmeter + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 20 + - run: npm install + - run: npm run lint + - run: npm run test + - name: Setup sonarqube + uses: warchant/setup-sonar-scanner@v3 + - name: Run sonarqube + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + run: sonar-scanner + -Dsonar.sources=. + -Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** + -Dsonar.login=${{ secrets.SONAR_TOKEN }} + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.projectKey=convert-postman-jmeter - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - registry-url: https://registry.npmjs.org/ - - run: npm install - - run: npm publish --access public - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - run: npm install + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/.github/workflows/npm-release.yml b/.github/workflows/npm-release.yml index d446af8..3f81554 100644 --- a/.github/workflows/npm-release.yml +++ b/.github/workflows/npm-release.yml @@ -1,48 +1,48 @@ name: Node.js Release on: - push: - tags: - - 'v*' + push: + tags: + - 'v*' jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - - run: npm install - - run: npm run lint - - run: npm run test - - name: Setup sonarqube - uses: warchant/setup-sonar-scanner@v3 - - name: Run sonarqube - env: - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} - run: sonar-scanner - -Dsonar.sources=. - -Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** - -Dsonar.login=${{ secrets.SONAR_TOKEN }} - -Dsonar.host.url=https://sonarcloud.io - -Dsonar.projectKey=convert-postman-jmeter - - name: Changelog - uses: scottbrenner/generate-changelog-action@master - id: Changelog - - name: Create Release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - body: | - # Change Log - - ## ${{ github.ref }} (May 27, 2019) - - - Automatic generation release. - draft: false - prerelease: false + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 20 + - run: npm install + - run: npm run lint + - run: npm run test + - name: Setup sonarqube + uses: warchant/setup-sonar-scanner@v3 + - name: Run sonarqube + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + run: sonar-scanner + -Dsonar.sources=. + -Dsonar.exclusions=node_modules/**,sonar-scanner-3.3.0.1492-linux/** + -Dsonar.login=${{ secrets.SONAR_TOKEN }} + -Dsonar.host.url=https://sonarcloud.io + -Dsonar.projectKey=convert-postman-jmeter + - name: Changelog + uses: scottbrenner/generate-changelog-action@master + id: Changelog + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + # Change Log + + ## ${{ github.ref }} (May 27, 2019) + + - Automatic generation release. + draft: false + prerelease: false diff --git a/.github/workflows/npm-update-changelog.yml b/.github/workflows/npm-update-changelog.yml index 5ad9b16..a6115ba 100644 --- a/.github/workflows/npm-update-changelog.yml +++ b/.github/workflows/npm-update-changelog.yml @@ -1,52 +1,52 @@ name: "Node.js Update changelog" on: - push: - branches: - - 'master' + push: + branches: + - 'master' jobs: - update-changelog: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14 - - run: npm install - - name: Update changelog - run: | - export GREN_GITHUB_TOKEN=${{ secrets.GIT_TOKEN }} - ./node_modules/.bin/gren changelog --override - - name: Get base branch - id: vars - run: | - base_ref=${{ github.head_ref || github.ref }} - echo ::set-output name=base_branch::${base_ref#refs/*/} - - name: Create Pull Request - id: cpr - uses: peter-evans/create-pull-request@v3 - with: - committer: GitHub - author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> - signoff: false - token: ${{ secrets.GIT_TOKEN }} - commit-message: Update changelog - delete-branch: true - title: Update Changelog - body: | - - Updated with *today's* date - - Auto-generated by [create-pull-request][1] - - Update changelog to reflect release changes + update-changelog: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 20 + - run: npm install + - name: Update changelog + run: | + export GREN_GITHUB_TOKEN=${{ secrets.GIT_TOKEN }} + ./node_modules/.bin/gren changelog --override + - name: Get base branch + id: vars + run: | + base_ref=${{ github.head_ref || github.ref }} + echo ::set-output name=base_branch::${base_ref#refs/*/} + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v3 + with: + committer: GitHub + author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> + signoff: false + token: ${{ secrets.GIT_TOKEN }} + commit-message: Update changelog + delete-branch: true + title: Update Changelog + body: | + - Updated with *today's* date + - Auto-generated by [create-pull-request][1] + - Update changelog to reflect release changes + + [1]: https://github.com/sercheo87/convert-postman-jmeter + branch: update-changelog + base: master + labels: automated pr + assignees: sercheo87 + draft: false - [1]: https://github.com/sercheo87/convert-postman-jmeter - branch: update-changelog - base: master - labels: automated pr - assignees: sercheo87 - draft: false - - - name: Check outputs - run: | - echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" - echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}" + - name: Check outputs + run: | + echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"