Skip to content

Commit a005d1b

Browse files
committed
add upload artifacts job
1 parent a582fb9 commit a005d1b

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

.github/workflows/checks.yml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: Checks
22

33
on:
44
push:
5-
branches: [main]
6-
pull_request:
5+
branches:
6+
- main
7+
- release/**
8+
pull_request:
79

810
env:
11+
# We pin the exact version to enforce reproducable builds with node + npm.
912
DEFAULT_NODE_VERSION: "16.15.1"
1013

1114
jobs:
@@ -66,3 +69,35 @@ jobs:
6669
node-version: ${{ env.DEFAULT_NODE_VERSION }}
6770
- run: yarn --frozen-lockfile
6871
- run: yarn lint
72+
73+
# artifacts:
74+
# needs: build
75+
# name: Upload Artifacts
76+
# runs-on: ubuntu-latest
77+
# # Build artifacts are only needed for releasing workflow.
78+
# # TODO comment back in
79+
# # if: startsWith(github.ref, 'refs/heads/release/')
80+
# steps:
81+
# - uses: actions/checkout@v3
82+
# - uses: actions/setup-node@v3
83+
# with:
84+
# node-version: ${{ env.DEFAULT_NODE_VERSION }}
85+
# # - name: Check dependency cache
86+
# # uses: actions/cache@v3
87+
# # with:
88+
# # path: ${{ env.CACHED_DEPENDENCY_PATHS }}
89+
# # key: ${{ needs.job_build.outputs.dependency_cache_key }}
90+
# # - name: Check build cache
91+
# # uses: actions/cache@v3
92+
# # with:
93+
# # path: ${{ env.CACHED_BUILD_PATHS }}
94+
# # key: ${{ env.BUILD_CACHE_KEY }}
95+
# - name: pack
96+
# run: yarn build:npm
97+
# - name: archive artifacts
98+
# uses: actions/upload-artifact@v2
99+
# with:
100+
# name: ${{ github.sha }}
101+
# path: |
102+
# ${{ github.workspace }}/packages/*/dist/**
103+
# ${{ github.workspace }}/packages/**/*.tgz

0 commit comments

Comments
 (0)