-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Making changes based on experiments in personal fork
- Loading branch information
1 parent
0f611a3
commit 1969a6c
Showing
11 changed files
with
102 additions
and
109 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
enabled: true | ||
titleOnly: false | ||
types: | ||
- feat | ||
- fix | ||
- docs | ||
- style | ||
- refactor | ||
- perf | ||
- test | ||
- build | ||
- ci | ||
- chore | ||
- revert |
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,37 @@ | ||
name: Check package lock up to date | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
package-lock-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Setup node cache | ||
id: node-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/node_modules" | ||
key: npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('package.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
if: steps.node-cache.outputs.cache-hit != 'true' | ||
run: npm i | ||
|
||
- name: Verify package-lock.json files are up to date | ||
run: | | ||
if ! git status --porcelain; then | ||
echo "::error::Changes detected in git after running 'npm install --package-lock-only'. Please run 'npm install' and commit and push the changes." | ||
git status | ||
exit 1 | ||
fi | ||
echo "No changes in package-lock detected." |
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,49 @@ | ||
name: Release | ||
|
||
on: | ||
pull_request: | ||
# will be checked is merged | ||
types: [closed] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Setup node cache | ||
id: node-cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "**/node_modules" | ||
key: npm-${{ hashFiles('package-lock.json') }}-${{ hashFiles('package.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
if: steps.node-cache.outputs.cache-hit != 'true' | ||
run: npm i --include dev | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Run release-it | ||
run: npm run release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_IT_OAUTH_TOKEN }} |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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.