forked from Nekonyx/next-auth-steam
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] add cjs require to exports (#2)
add require so this package can be used with node.js environments. Necessary for playwright tests to run in the dev portal
- Loading branch information
Showing
7 changed files
with
31 additions
and
79 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
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
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