chore(deps): update yarn to v4.5.3 #1981
Workflow file for this run
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: Test release | |
on: | |
pull_request: | |
branches: | |
- master | |
env: | |
NPM_CONFIG_PROVENANCE: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # to be able to publish a GitHub release | |
issues: write # to be able to comment on released issues | |
pull-requests: write # to be able to comment on released pull requests | |
id-token: write # to enable use of OIDC for npm provenance | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with : | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: yarn install --immutable --immutable-cache | |
- name: Set yarn config | |
run: yarn config set npmAuthToken $NPM_AUTH_TOKEN | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.YARN_TOKEN }} | |
- name: Build | |
run: | | |
yarn workspace postcss-colorguard build | |
yarn workspace colorguard-processor build | |
yarn workspace colorguard-cli build | |
- name: Semantic Release dry run | |
id: dry-release | |
run: unset GITHUB_ACTIONS && yarn run release --dry-run --no-ci --branches ${HEAD_REF} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
HEAD_REF: ${{ github.head_ref }} | |
NPM_TOKEN: ${{ secrets.YARN_TOKEN }} |