-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: no TLA, no bundling for library (#2)
TLA prevents polyfilling to CJS, and so does bundling due to the top-level shim.
- Loading branch information
Showing
6 changed files
with
1,454 additions
and
1,193 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
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,69 @@ | ||
name: Release (canary) | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.OVERRIDE_GITHUB_TOKEN }} | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
branches: | ||
- canary | ||
|
||
jobs: | ||
Release: | ||
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true | ||
|
||
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
matrix: | ||
nodejs: [18] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.nodejs }} | ||
|
||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: git config | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Use Git checkout with submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.OVERRIDE_GITHUB_TOKEN }} | ||
|
||
- name: Use PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: pnpm | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install | ||
run: pnpm i | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Test Production Bundle & Release | ||
run: npx release-it --preRelease=canary --ci -VV |
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,69 @@ | ||
name: Release (production) | ||
|
||
on: | ||
workflow_dispatch: {} | ||
|
||
pull_request_target: | ||
types: | ||
- closed | ||
|
||
branches: | ||
- master | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.OVERRIDE_GITHUB_TOKEN }} | ||
|
||
jobs: | ||
Release: | ||
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true | ||
|
||
name: Node.js v${{ matrix.nodejs }} (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
matrix: | ||
nodejs: [18] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.nodejs }} | ||
|
||
- name: Authenticate with private NPM package | ||
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc | ||
|
||
- name: git config | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Use Git checkout with submodules | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
token: ${{ secrets.OVERRIDE_GITHUB_TOKEN }} | ||
|
||
- name: Use PNPM | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: latest | ||
|
||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
cache: pnpm | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Install | ||
run: pnpm i | ||
|
||
- name: Configure Git | ||
run: | | ||
git config user.name "${GITHUB_ACTOR}" | ||
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
- name: Test Production Bundle & Release | ||
run: npx release-it minor --ci -VV |
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.