- Added .pnpmrc for pnpm 10 configuration, enabling peer dependencies and lifecycle scripts. - Updated package.json to reflect pnpm version change to 10.11.1 and added onlyBuiltDependencies. - Update pipelines to reflect pnpm version update to 10.11.1 ## Upgrading your pnpm version Now to upgrade your `pnpm` version you can run `pnpm migrate-to-pnpm-version 10`. Which would upgrade your `pnpm` and it will run the upgrade script. Later on if you want to upgrade to pnpm v11 you can run `pnpm migrate-to-pnpm-version 11`. Additionally, if you just want to upgrade to the version that is inside of `package.json` you would run `pnpm migrate-to-pnpm-version` without passing in a major version.
70 lines
1.9 KiB
YAML
70 lines
1.9 KiB
YAML
name: Issue Statistics
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * 0"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
issues: read
|
|
pull-requests: read
|
|
|
|
jobs:
|
|
issues-report:
|
|
if: ${{ github.repository_owner == 'nrwl' }}
|
|
runs-on: ubuntu-latest
|
|
name: Report status
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 10.11.1
|
|
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '20.19.0'
|
|
cache: 'pnpm'
|
|
|
|
- name: Cache node_modules
|
|
id: cache-modules
|
|
uses: actions/cache@v3
|
|
with:
|
|
lookup-only: true
|
|
path: '**/node_modules'
|
|
key: pnpm-${{ hashFiles('pnpm-lock.yaml') }}
|
|
|
|
- name: Install packages
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Download artifact
|
|
id: download-artifact
|
|
uses: dawidd6/action-download-artifact@v2 # Needed since we are downloading artifact from a different workflow run, official actions/download-artifact doesn't support this.
|
|
with:
|
|
name: cached-issue-data
|
|
path: ${{ github.workspace }}/scripts/issues-scraper/cached
|
|
search_artifacts: true
|
|
continue-on-error: true
|
|
|
|
- name: Collect Issue Data
|
|
id: collect
|
|
run: npx tsx ./scripts/issues-scraper/index.ts
|
|
env:
|
|
GITHUB_TOKEN: ${{ github.token }}
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: cached-issue-data
|
|
path: ./scripts/issues-scraper/cached/data.json
|
|
|
|
- name: Send GitHub Action trigger data to Slack workflow
|
|
id: slack
|
|
uses: slackapi/slack-github-action@v1.23.0
|
|
with:
|
|
payload: ${{ steps.collect.outputs.SLACK_MESSAGE }}
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ISSUES_REPORT_URL }}
|
|
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
|