-
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.
- Loading branch information
1 parent
6224ac7
commit 20bee31
Showing
9 changed files
with
4,078 additions
and
3,765 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 |
---|---|---|
|
@@ -18,30 +18,40 @@ jobs: | |
access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_RELEASE_TOKEN }} | ||
|
||
- name: Setup Git | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
always-auth: true | ||
registry-url: https://registry.npmjs.org | ||
|
||
- name: Set up Git | ||
run: | | ||
git config --local user.name "GitHub Actions" | ||
git config --local user.email "[email protected]" | ||
- name: Install dependencies | ||
uses: bahmutov/npm-install@v1 | ||
- name: Set up pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
useLockFile: false | ||
version: 8.15 | ||
|
||
- name: Install dependencies | ||
run: pnpm install | ||
|
||
- name: Test the library | ||
run: yarn test | ||
- name: Tests | ||
run: pnpm test | ||
|
||
- name: Build the library | ||
run: yarn build | ||
- name: Build | ||
run: pnpm build | ||
|
||
- name: Publish | ||
if: github.ref == 'refs/heads/main' | ||
run: yarn release | ||
run: pnpm release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_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,5 +1,7 @@ | ||
# Dependencies | ||
node_modules | ||
yarn.lock | ||
package-lock.json | ||
|
||
# Build | ||
lib |
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.