forked from foxglove/comlink
-
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.
Added CI pipeline to the project (#3)
* CI pipeline added * Change on package.json scripts to test the project * Metadata changes for the repository * fix on the pipeline so the publish step is triggered as is intended
- Loading branch information
1 parent
6aea6ba
commit 0221b50
Showing
2 changed files
with
36 additions
and
5 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,31 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: main | ||
tags: "v*" | ||
pull_request: | ||
branches: "*" | ||
|
||
jobs: | ||
push: | ||
name: push | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
registry-url: https://registry.npmjs.org | ||
cache: yarn | ||
|
||
- run: yarn install --frozen-lockfile | ||
- run: yarn run build | ||
- run: yarn run test | ||
|
||
- name: Publish to NPM | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | ||
run: yarn publish --access public | ||
env: | ||
NODE_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