Skip to content

Commit 1b1382e

Browse files
committed
Cleanup and polish
1 parent f9e2d65 commit 1b1382e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
strategy:
99
matrix:
10-
node-version: [12.x, 14.x, v14.17, v16.x, '*']
10+
node-version: [12.x, 14.x, v16.x, 'latest']
1111

1212
steps:
1313
- uses: actions/checkout@v2
@@ -18,17 +18,18 @@ jobs:
1818

1919
- run: npm install --no-package-lock
2020
- run: npm test
21-
- run: npm run build-storybook
21+
- run: npm run build-storybook --quiet
2222

2323
- uses: actions/upload-artifact@v2
24-
#TODO: if: github.ref == 'refs/heads/master' && matrix.node-version == 'v16.x'
25-
if: matrix.node-version == 'v16.x'
24+
# Only publish examples using the master branch, and only from one build
25+
if: github.ref == 'refs/heads/github-actions' && matrix.node-version == 'v16.x'
2626
with:
2727
name: examples
2828
path: examples/*
2929
if-no-files-found: error
3030

3131
publish:
32+
if: github.ref == 'refs/heads/github-actions'
3233
name: Deploy storybook examples
3334
runs-on: ubuntu-latest
3435
needs: build

0 commit comments

Comments
 (0)