Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PNPM #148

Merged
merged 12 commits into from
Jun 8, 2024
Merged

PNPM #148

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 28 additions & 33 deletions .github/workflows/npm-build.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,33 @@
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@v3
- uses: actions/setup-node@v2
with:
node-version: 20
- run: npm install
- run: npm run lint
- run: npm run test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

76 changes: 35 additions & 41 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,47 +1,41 @@
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@v3
- uses: actions/setup-node@v2
with:
node-version: 20
- run: npm install
- run: npm run lint
- run: npm run test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

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}}
80 changes: 37 additions & 43 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,42 @@
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@v3
- uses: actions/setup-node@v2
with:
node-version: 20
- run: npm install
- run: npm run lint
- run: npm run test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- 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 }}"
Loading
Loading