-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trigger release
- Loading branch information
Showing
53 changed files
with
13,277 additions
and
12,796 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Approve PRs with "pr/auto-approve". mergify takes care of the actual merge. | ||
|
||
name: auto-approve | ||
on: | ||
pull_request_target: | ||
types: [ labeled, unlabeled, opened, synchronize, reopened, ready_for_review, review_requested ] | ||
|
||
jobs: | ||
auto-approve: | ||
uses: xivstats/workflows/.github/workflows/autoapprove.yml@main |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -20,52 +20,10 @@ on: | |
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
uses: xivstats/workflows/.github/workflows/ts-npm-build.yml@main | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
strategy: | ||
matrix: | ||
node-version: [ 14.x, 16.x] | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
|
||
- run: npm install | ||
- run: npm run test:ci:unit | ||
name: 'Execute unit tests' | ||
- run: npm run test:ci:integration | ||
name: 'Execute integration tests' | ||
|
||
- name: Publish test report | ||
uses: dorny/test-reporter@v1 | ||
if: github.actor != 'dependabot-bot' && (success() || failure()) # run this step even if previous step failed | ||
with: | ||
name: JEST Tests # Name of the check run which will be created | ||
path: reports/jest-*.xml # Path to test results | ||
reporter: jest-junit # Format of test results | ||
|
||
- run: npm run lint | ||
name: Run linter | ||
if: success() || failure() # run this step even if previous step failed | ||
|
||
- run: npm run format:check | ||
name: Check formatting | ||
if: success() || failure() # run this step even if previous step failed | ||
|
||
- name: Upload | ||
uses: codecov/[email protected] | ||
if: success() || failure() # run this step even if previous step failed | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
- run: npm run build | ||
name: Execute TypeScript Build | ||
|
||
|
||
|
||
|
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 |
---|---|---|
|
@@ -12,74 +12,13 @@ on: | |
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Skip release commits - prevents recursive builds | ||
if: "!contains(github.event.head_commit.message, 'chore(release)')" | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: 'npm' | ||
|
||
- run: npm install | ||
- run: npm test | ||
- run: npm run build | ||
- run: npm run lint | ||
uses: xivstats/workflows/.github/workflows/ts-npm-build.yml@main | ||
secrets: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
publish: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
cache: 'npm' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm install | ||
- run: npm run build | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Actions" | ||
- run: git rev-parse --abbrev-ref HEAD | ||
- name: Release new version to NPM & GitHub, generate changelog | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_CONFIG_REGISTRY: https://registry.npmjs.org:8443/ # https://github.com/semantic-release/npm/issues/277#issuecomment-723431906 | ||
run: npm run release | ||
- name: get-npm-version | ||
id: package-version | ||
uses: martinbeentjes/npm-get-version-action@master | ||
- run: git checkout -b release/${{ steps.package-version.outputs.current-version }} | ||
- uses: actions/setup-node@v2 | ||
name: Publish new version to GitHub packages | ||
with: | ||
registry-url: 'https://npm.pkg.github.com' | ||
# Defaults to the user or organization that owns the workflow file | ||
scope: '@xivstats' | ||
- run: git add CHANGELOG.md package.json package-lock.json | ||
- run: 'git commit -m "chore(release): ${{ steps.package-version.outputs.current-version }}" -m "[skip ci]"' | ||
- name: Push changes | ||
# Publish to GitHub Packages | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GH_PUSH_TOKEN }} | ||
branch: 'release/${{ steps.package-version.outputs.current-version }}' | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: pull-request | ||
uses: repo-sync/pull-request@v2 | ||
with: | ||
source_branch: 'release/${{ steps.package-version.outputs.current-version }}' | ||
destination_branch: main | ||
pr_title: 'chore(release): ${{ steps.package-version.outputs.current-version }}' | ||
pr_body: 'Auto-compile changelog, increment package, then auto-merge changes made for v${{ steps.package-version.outputs.current-version }} into main. [skip ci]' | ||
pr_label: 'pr/auto-approve' | ||
github_token: ${{ secrets.GH_PUSH_TOKEN }} | ||
uses: xivstats/workflows/.github/workflows/ts-npm-release.yml@main | ||
secrets: | ||
GH_PUSH_TOKEN: ${{ secrets.GH_PUSH_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 +1 @@ | ||
14 | ||
16 |
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
Oops, something went wrong.