Skip to content

Commit 7b5687d

Browse files
committed
WIP - Updated workflow to lint + push ci packages.
1 parent 00ee3ce commit 7b5687d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- macos-latest
1212
- windows-latest
1313
node_version:
14-
- 15
14+
- 16
1515
name: Node ${{ matrix.node_version }} on ${{ matrix.os }}
1616
steps:
1717
- name: Checkout
@@ -26,9 +26,21 @@ jobs:
2626
node-version: ${{ matrix.node_version }}
2727
- name: NPM install with caching
2828
uses: bahmutov/npm-install@v1
29-
- name: Yarn install (for lage)
30-
run: yarn install
3129
- name: Build
3230
run: npm run build
31+
- name: Lint
32+
run: npm run lint
3333
- name: Run Tests
3434
run: npm test
35+
- name: Push CI Packages
36+
if: github.event_name != 'pull_request' && matrix.os == 'ubuntu-latest'
37+
run: |
38+
echo @exceptionless:registry=https://npm.pkg.github.com >> .npmrc
39+
npm publish --workspaces --access public
40+
env:
41+
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
42+
- name: Publish Release Packages
43+
if: startsWith(github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
44+
run: npm publish --workspaces --access public
45+
env:
46+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)