Skip to content

Commit

Permalink
Merge pull request #150
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
sercheo87 authored Jun 8, 2024
2 parents 5d2776a + 87faddd commit 77fe949
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 163 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
@@ -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
82 changes: 41 additions & 41 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -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}}
86 changes: 43 additions & 43 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
@@ -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
92 changes: 46 additions & 46 deletions .github/workflows/npm-update-changelog.yml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
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 <[email protected]>
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 }}"

0 comments on commit 77fe949

Please sign in to comment.