forked from Nekonyx/next-auth-steam
-
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.
fix lint, update gha's to use shared workflows
- Loading branch information
1 parent
6dc3163
commit a4c0ef5
Showing
3 changed files
with
26 additions
and
73 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 |
---|---|---|
|
@@ -6,23 +6,17 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '16' | ||
cache: 'yarn' | ||
- name: Reconfigure git to use HTTP authentication | ||
run: > | ||
git config --global url."https://github.com/".insteadOf | ||
ssh://[email protected]/ | ||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
- name: Install modules. | ||
run: yarn install --frozen-lockfile --immutable | ||
- name: Lint code. | ||
run: yarn lint | ||
- name: Prettier code. | ||
run: yarn prettier | ||
test: | ||
uses: HyperPlay-Gaming/workflows/.github/workflows/nodejs_commands.yml@main | ||
with: | ||
node_version: '18' | ||
pkg_manager: 'npm' | ||
install: 'npm install' | ||
name: 'test' | ||
command_one: 'npm run lint' | ||
command_one_name: 'Lint' | ||
command_two: 'npm run prettier' | ||
command_two_name: 'Prettier code.' | ||
checkout_recursive: false | ||
secrets: | ||
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.