Skip to content

Commit

Permalink
Merge branch 'main' into release-please--branches--main
Browse files Browse the repository at this point in the history
* main:
  docs: update component READMEs (#9446)
  build: update browserslist db (#9445)
  ci(renovate): remove noisy sections from the PR body (#9441)
  refactor(storybook): replace fake knobs with controls for simple stories (#9385)
  build: remove unnecessary dist files before publishing (#9439)
  build(deps): update dependency axe-core to v4.9.1 (#9436)
  ci: combine related actions into single workflow file (#9434)
  build(deps): update dependency @floating-ui/dom to v1.6.5 (#9435)
  build(deps): update angular monorepo to v17.3.10 (#9431)
  ci: upload dist to github releases (#9428)
  ci: skip chromatic for release and doc update PRs (#9430)
  ci: enable npm provenance statements (#9429)
  • Loading branch information
benelan committed May 29, 2024
2 parents c894cc8 + ed286d5 commit 7c952d3
Show file tree
Hide file tree
Showing 105 changed files with 4,780 additions and 4,335 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/add-esri-product-label.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/add-package-label.yml

This file was deleted.

14 changes: 0 additions & 14 deletions .github/workflows/add-priority-label.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/assign-for-verification.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,7 @@ jobs:
git commit -m "build: update types and package-lock" || true
npm run publish:latest
npm run util:upload-release-assets -- "${{ steps.release.outputs.paths_released }}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
1 change: 1 addition & 0 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
NEXT_RELEASE_ENABLED: ${{ secrets.NEXT_RELEASE_ENABLED }}
# https://github.com/storybookjs/storybook-deployer/issues/77#issuecomment-618560481
GH_TOKEN_FOR_STORYBOOK: ${{ github.actor }}:${{ secrets.ADMIN_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
if [ "$NEXT_RELEASE_ENABLED" == "true" ]; then
npm install
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/issue-add-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Add Issue Labels
on:
issues:
types: [opened, edited]
jobs:
product-label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Add Esri Product Label
uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/addEsriProductLabel.js')
await action({github, context, core})
- name: Add Calcite Package Label
uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/addCalcitePackageLabel.js')
await action({github, context, core})
- name: Add Priority Label
uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/addPriorityLabel.js')
await action({github, context, core})
53 changes: 53 additions & 0 deletions .github/workflows/issue-notifications.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Issue Notifications
on:
issues:
types: [labeled]
jobs:
determine-action:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- uses: actions/checkout@v4

- name : "Assign for verification"
if: github.event.label.name == '3 - installed'
uses: actions/github-script@v7
env:
ISSUE_VERIFIERS: ${{secrets.ISSUE_VERIFIERS}}
CALCITE_DESIGNERS: ${{secrets.CALCITE_DESIGNERS}}
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/assignForVerification.js')
await action({github, context, core})
- name: "Spike complete notification"
if: github.event.label.name == 'spike complete'
uses: actions/github-script@v7
env:
managers: ${{secrets.CALCITE_MANAGERS}}
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/notifyWhenSpikeComplete.js')
await action({github, context, core})
- name: "Ready for dev notification"
if: github.event.label.name == 'ready for dev'
uses: actions/github-script@v7
env:
managers: ${{secrets.CALCITE_MANAGERS}}
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/notifyWhenReadyForDev.js')
await action({github, context, core})
- name: "New component notification"
if: github.event.label.name == 'new component'
uses: actions/github-script@v7
env:
designers: ${{secrets.CALCITE_DESIGNERS}}
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/notifyAboutNewComponent.js')
await action({github, context, core})
16 changes: 0 additions & 16 deletions .github/workflows/new-component-notify.yml

This file was deleted.

15 changes: 7 additions & 8 deletions .github/workflows/pr-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,21 @@ permissions:
pull-requests: write
issues: write
jobs:
assign-author:
assign-and-label:
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7

- name: "Assign author"
uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/assignPullRequestAuthor.js')
await action({github, context, core})
label-type:
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.user.login != 'renovate[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
- name: "Add commit type label"
uses: actions/github-script@v7
with:
script: |
const action = require('${{ github.workspace }}/.github/scripts/labelPullRequestWithCommitType.js')
Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/pr-tests_eslint-plugin-calcite-components.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .github/workflows/ready-for-dev.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/schedule-updates.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Schedule Updates
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
component-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: package.json
- name: generate doc
run: |
npm install
npm --workspace=@esri/calcite-design-tokens run build
npm --workspace=@esri/eslint-plugin-calcite-components run build
npx --workspace=@esri/calcite-components stencil build --docs
npm run --workspace=@esri/calcite-components lint:md
- name: Commit and create pull request
uses: peter-evans/create-pull-request@v4
with:
base: main
branch: ci/update-component-docs
commit-message: "docs: update component READMEs"
token: ${{ secrets.ADMIN_TOKEN }}
title: "docs: update component READMEs"
body: This PR was automatically generated by the update-doc GitHub action
labels: "docs,skip visual snapshots"

browserslist-db:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: npm
- name: Run update-browserslist-db
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
npx update-browserslist-db@latest
- name: Commit and create pull request
uses: peter-evans/create-pull-request@v4
with:
base: main
branch: ci/update-browserslist-db
commit-message: "build: update browserslist db"
title: "build: update browserslist db"
body: "This PR was automatically generated by the update-browserslist-db GitHub action"
token: ${{ secrets.ADMIN_TOKEN }}
labels: "chore,skip visual snapshots"
21 changes: 0 additions & 21 deletions .github/workflows/spike-complete.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/update-browserslist-db.yml

This file was deleted.

Loading

0 comments on commit 7c952d3

Please sign in to comment.