making registration of custom elements for providers use a register f… #359
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
# 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: Release next/* | |
on: | |
push: | |
branches: [next/*] | |
paths: | |
- 'packages/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.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' | |
- run: npm install -g yarn lerna | |
- run: yarn | |
- name: Extract tag name | |
shell: bash | |
run: echo "##[set-output name=tag;]$(branch=${GITHUB_REF#refs/heads/}; echo ${branch/\//.})" | |
id: extract_tag | |
- run: node scripts/setVersion.js --tag ${{ steps.extract_tag.outputs.tag }} | |
- run: yarn build | |
- run: lerna exec --scope @microsoft/* -- "npm publish --tag ${{ steps.extract_tag.outputs.tag }} --access=public" | |
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit' | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Upload a Build Artifact - mgt-spfx Solution | |
uses: actions/upload-artifact@v2 | |
with: | |
name: mgt-spfx solution | |
path: packages/mgt-spfx/sharepoint/* |