fix(Pagination): Fix rule to report as a warning instead of an error … #321
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
name: release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
deploy: | |
runs-on: ubuntu-latest | |
needs: 'test' | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_BRANCH_PROTECTION }} # needs to be an admin token to get around branch protection | |
GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }} | |
steps: | |
- uses: actions/checkout@v2 | |
# Yes, we really want to checkout the PR | |
with: | |
token: ${{ secrets.GH_BRANCH_PROTECTION }} # needs to be an admin token to get around branch protection | |
fetch-depth: "0" | |
- run: | | |
if [[ ! -z "${GH_PR_NUM}" ]]; then | |
echo "Checking out PR" | |
git fetch origin pull/$GH_PR_NUM/head:tmp | |
git checkout tmp | |
fi | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18' | |
- uses: actions/cache@v2 | |
id: yarn-cache | |
name: Cache npm deps | |
with: | |
path: | | |
node_modules | |
**/node_modules | |
~/.cache/Cypress | |
key: ${{ runner.os }}-yarn-14-${{ secrets.CACHE_VERSION }}-${{ hashFiles('yarn.lock') }} | |
- run: yarn install --frozen-lockfile | |
if: steps.yarn-cache.outputs.cache-hit != 'true' | |
- run: yarn build | |
- run: .github/release.sh |