chore(npm): update @3846masa/configs digest to cc7782a #954
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: "16" | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn lint | |
test: | |
name: Test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
node: ["14", "16", "18"] | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn test | |
passed: | |
name: All CI passed | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- test | |
if: always() | |
steps: | |
- uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | |
env: | |
RESULT_JSON: ${{ toJSON(needs) }} | |
with: | |
script: | | |
const result = JSON.parse(process.env.RESULT_JSON); | |
const passed = Object.values(result).every(({ result }) => result === 'success'); | |
if (!passed) process.exit(1); | |
release: | |
name: Release package | |
if: github.ref == 'refs/heads/main' | |
needs: | |
- passed | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_GIT_SSH_PRIVATE_KEY }} | |
- uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | |
with: | |
node-version: "16" | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn patch-package | |
- run: yarn build | |
- run: yarn run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |