-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create build-and-test.yml * Create publish.yml * Update publish.yml * Update publish.yml * Update build-and-test.yml * Update build-and-test.yml * Update build-and-test.yml
- Loading branch information
1 parent
384a794
commit dc06c5f
Showing
2 changed files
with
47 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: "Build and Test" | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'src/*' | ||
- 'docs/*' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install packages | ||
run: npm ci | ||
- name: Build the project | ||
run: npm run build | ||
- name: Run linter | ||
uses: mooyoul/tslint-actions@v1.1.1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
pattern: '*.ts' |
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,23 @@ | ||
name: Publish to NPM | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Install packages | ||
run: npm ci | ||
- name: Build the project | ||
run: npm run build | ||
- name: Publish to NPM | ||
uses: primer/publish@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
args: '--dir=lib' |