-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove yarn in favor of npm * Create tame-turkeys-laugh.md * Check in package-lock * Revert * Use auto commit action instead * Cache and run npm ci * Change node version to 18 * config legacy-peer-deps * Update node version * Also legacy peer deps in docs * Ignore yarn.lock * no-audit no-fund * I dont know * re-yarn the docs folder * Update pakage-lock.json * package lock * Removing yarn from docs again * Remove docs preview * don't depend on deploy * put back --------- Co-authored-by: Katie Langerman <[email protected]>
- Loading branch information
1 parent
2c47020
commit e1b3f4f
Showing
22 changed files
with
26,227 additions
and
15,925 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@primer/css": patch | ||
--- | ||
|
||
Remove yarn in favor of npm |
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,54 +11,44 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
- run: yarn | ||
- run: yarn dist | ||
node-version: 18 | ||
cache: 'npm' | ||
- run: npm ci | ||
- run: npm run dist | ||
- name: Lint source files | ||
run: yarn stylelint --fix | ||
run: npx stylelint --fix | ||
- name: Look for unused stylelint:disable lines | ||
run: yarn stylelint -- --report-needless-disables | ||
run: npm run stylelint -- --report-needless-disables | ||
- name: Push up any fixes | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
set +e | ||
git status | grep modified | ||
if [ $? -eq 0 ] | ||
then | ||
set -e | ||
git stash | ||
git remote update | ||
git fetch | ||
git checkout --track origin/$GITHUB_HEAD_REF | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Actions Auto Build" | ||
git stash pop | ||
git add src | ||
git commit -m "Stylelint auto-fixes" | ||
git push | ||
else | ||
set -e | ||
echo "No changes since last run" | ||
fi | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: Fixing stylelint issues | ||
commit_user_name: GitHub Design Engineering Bot | ||
commit_user_email: [email protected] | ||
commit_author: primer-css <[email protected]> | ||
file_pattern: src/**/*.scss | ||
|
||
eslint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
- run: yarn | ||
node-version: 18 | ||
cache: 'npm' | ||
- run: npm ci | ||
- name: Lint workflow files | ||
run: yarn eslint | ||
run: npm run eslint | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
- run: yarn | ||
node-version: 18 | ||
cache: 'npm' | ||
- run: npm ci | ||
- name: Jest | ||
run: yarn test | ||
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
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
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
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 |
---|---|---|
|
@@ -13,5 +13,5 @@ docs/dist | |
node_modules/ | ||
public/ | ||
searchIndex.js | ||
package-lock.json | ||
tmp | ||
yarn.lock |
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,2 +1,4 @@ | ||
git-tag-version=false | ||
package-lock=false | ||
legacy-peer-deps=true | ||
no-audit=true | ||
no-fund=true |
Oops, something went wrong.
e1b3f4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHange the goal of your life