diff --git a/.github/workflows/push-release.yml b/.github/workflows/push-release.yml index 6745ef54f0..080cf6cae9 100644 --- a/.github/workflows/push-release.yml +++ b/.github/workflows/push-release.yml @@ -5,7 +5,7 @@ name: Release latest on: push: - branches: [release/latest] + tags: ['v3.*'] jobs: version: diff --git a/.github/workflows/run-release-please.yml b/.github/workflows/run-release-please.yml new file mode 100644 index 0000000000..384092d285 --- /dev/null +++ b/.github/workflows/run-release-please.yml @@ -0,0 +1,24 @@ +# when the main branch is updated this workflow will run and create or update a combined [release PR](https://github.com/googleapis/release-please#whats-a-release-pr) +# upon approval of the release PR as it adds a v3.x tag the [push-release.yml](./push-release.yml) workflow will run, push the release to npm and update the GitHub +# release with the mgt-spfx sppkg file + +on: + push: + branches: + - main + + permissions: + contents: write + pull-requests: write + + name: Run Release Please + jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + command: manifest + token: ${{secrets.GITHUB_TOKEN}} + default-branch: main \ No newline at end of file diff --git a/.github/workflows/storybook-v3.yml b/.github/workflows/storybook-v3.yml deleted file mode 100644 index accdfa5739..0000000000 --- a/.github/workflows/storybook-v3.yml +++ /dev/null @@ -1,40 +0,0 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Deploy next/fluentui storybook - -on: - push: - branches: [next/fluentui] - -jobs: - build: - runs-on: ubuntu-latest - if: github.repository == 'microsoftgraph/microsoft-graph-toolkit' - - strategy: - matrix: - node-version: [16.x] - - steps: - - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - registry-url: 'https://registry.npmjs.org' - - - name: Build 🛠 - run: | - npm install -g yarn lerna - yarn - yarn build - yarn storybook:build - - - name: Deploy mgt.dev/next 🚀 - uses: JamesIves/github-pages-deploy-action@4.1.1 - with: - branch: gh-pages - folder: storybook-static - target-folder: next/v3 - token: ${{ secrets.GITHUB_TOKEN }}