This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
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.
BREAKING CHANGE: there are no es6, esnext and amd for the package anymore. The release package will have cjs, es and types folders instead.
- Loading branch information
Showing
12 changed files
with
12,143 additions
and
1,991 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
dist | ||
cjs | ||
es | ||
types | ||
tests |
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 |
---|---|---|
@@ -1,26 +1,57 @@ | ||
name: Publish NPM Package | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: [master] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/setup-node@v2.1.4 | ||
with: | ||
check-latest: true | ||
- name: Dependency check | ||
run: npm ci | ||
- name: Dependency cruiser check | ||
run: npm run test:deps | ||
- name: Prettier check | ||
run: npm run test:prettier | ||
- name: ESLint check | ||
run: npm run test:eslint | ||
- name: Skypack check | ||
run: npm run test:skypack | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [12, 13, 14, 15] | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- name: Set up Node.js ${{matrix.node}} | ||
uses: actions/setup-node@v2.1.4 | ||
with: | ||
node-version: ${{matrix.node}} | ||
- name: Unit tests | ||
run: npm cit | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
needs: [lint, test] | ||
steps: | ||
- uses: actions/checkout@v2.3.4 | ||
- uses: actions/setup-node@v2.1.4 | ||
with: | ||
node-version: 12 | ||
check-latest: true | ||
registry-url: https://registry.npmjs.org/ | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Build commonjs, es6, esnext and amd | ||
run: | | ||
npm run build:cjs | ||
npm run build:es6 | ||
npm run build:esnext | ||
npm run build:amd | ||
npm run build:es | ||
npm run build:types | ||
- name: Publish to npm | ||
run: npm publish | ||
run: npm run release | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
coverage | ||
dist | ||
cjs | ||
es | ||
types | ||
.nyc_output | ||
CHANGELOG.md | ||
/tsconfig.json |
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.