-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
936 additions
and
171 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,29 @@ | ||
name: Master push and pull request | ||
|
||
on: | ||
pull_request: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [master] | ||
|
||
push: | ||
branches: [ master ] | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
node-version: [22.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: npm ci --no-optional | ||
- run: npm run lint | ||
- run: npm test | ||
- run: npm ci --no-optional | ||
- run: npm run lint | ||
- run: npm test |
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 |
---|---|---|
|
@@ -9,51 +9,50 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
node-version: [22.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
# "ref" specifies the branch to check out. | ||
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted | ||
ref: ${{ github.event.release.target_commitish }} | ||
|
||
- name: Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: git config --global user.name "GitHub CD bot" | ||
- run: git config --global user.email "[email protected]" | ||
|
||
- run: npm ci --no-optional | ||
|
||
# Version the module using the release tag name | ||
- run: npm version ${{ github.event.release.tag_name }} | ||
|
||
# Set up .npmrc file so the artifact can be published | ||
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc | ||
|
||
# Lint, test, build and publish changes | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# Push version changes back to github | ||
- run: git push | ||
env: | ||
# The secret is passed automatically. Nothing to configure. | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Configure AWS credentials for uploading docs | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_DOCS_ACCESS_KEY }} | ||
aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_KEY }} | ||
aws-region: us-east-1 | ||
|
||
# Create typedoc information and upload | ||
- run: npm run doc | ||
- run: aws s3 sync ./docs "s3://j2-docs/$GITHUB_REPOSITORY" | ||
- uses: actions/checkout@v2 | ||
with: | ||
# "ref" specifies the branch to check out. | ||
# "github.event.release.target_commitish" is a global variable and specifies the branch the release targeted | ||
ref: ${{ github.event.release.target_commitish }} | ||
|
||
- name: Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- run: git config --global user.name "GitHub CD bot" | ||
- run: git config --global user.email "[email protected]" | ||
|
||
- run: npm ci --no-optional | ||
|
||
# Version the module using the release tag name | ||
- run: npm version ${{ github.event.release.tag_name }} | ||
|
||
# Set up .npmrc file so the artifact can be published | ||
- run: echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > .npmrc | ||
|
||
# Lint, test, build and publish changes | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
# Push version changes back to github | ||
- run: git push | ||
env: | ||
# The secret is passed automatically. Nothing to configure. | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Configure AWS credentials for uploading docs | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_DOCS_ACCESS_KEY }} | ||
aws-secret-access-key: ${{ secrets.AWS_DOCS_SECRET_KEY }} | ||
aws-region: us-east-1 | ||
|
||
# Create typedoc information and upload | ||
- run: npm run doc | ||
- run: aws s3 sync ./docs "s3://j2-docs/$GITHUB_REPOSITORY" |
Oops, something went wrong.