-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use externalized workflows (#136)
Co-authored-by: Amulya Kashyap <[email protected]>
- Loading branch information
1 parent
8e57075
commit ef5aa34
Showing
5 changed files
with
5 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,26 +11,4 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
node-version: [18.x, 20.x] | ||
os: [ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm i --package-lock --package-lock-only | ||
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
- name: upload coverage | ||
if: success() | ||
uses: codecov/[email protected] | ||
with: | ||
name: ${{ runner.os }} node.js ${{ matrix.node-version }} | ||
uses: adobe/aio-reusable-workflows/.github/workflows/node.js.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,29 +17,4 @@ on: | |
|
||
jobs: | ||
checkout: | ||
name: checkout | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- run: | | ||
npm install | ||
npm test | ||
- name: Update your package.json with an npm pre-release version | ||
id: pre-release-version | ||
uses: adobe/[email protected] | ||
with: | ||
pre-release-tag: ${{ github.event.inputs.pre-release-tag }} | ||
dependencies-to-update: ${{ github.event.inputs.dependencies-to-update }} | ||
dependencies-to-update-version-tag: ${{ github.event.inputs.dist-tag }} | ||
- run: echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }} | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} | ||
tag: ${{ github.event.inputs.dist-tag }} | ||
access: 'public' | ||
uses: adobe/aio-reusable-workflows/.github/workflows/prerelease.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,26 +12,4 @@ on: | |
default: 'latest' | ||
jobs: | ||
checkout: | ||
name: checkout | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
- run: | | ||
npm install | ||
npm test | ||
- name: bump and pub | ||
if: ${{ github.event.inputs.level != '' }} | ||
run: | | ||
npm version ${{ github.event.inputs.level }} | ||
git push | ||
- uses: JS-DevTools/npm-publish@v1 | ||
with: | ||
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} | ||
tag: ${{ github.event.inputs.tag }} | ||
access: 'public' | ||
uses: adobe/aio-reusable-workflows/.github/workflows/version-bump-publish.yml@main |