Skip to content

Commit 5b9fd62

Browse files
committed
Fixed build and version order when publishing
1 parent ea0016d commit 5b9fd62

File tree

6 files changed

+16
-9
lines changed

6 files changed

+16
-9
lines changed

.github/workflows/next.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
branches: [next/*]
99
paths:
1010
- 'packages/**'
11-
11+
1212
jobs:
1313
build:
1414
runs-on: ubuntu-latest
@@ -26,12 +26,15 @@ jobs:
2626
registry-url: 'https://registry.npmjs.org'
2727
- run: npm install -g yarn lerna
2828
- run: yarn
29-
- run: yarn build
29+
3030
- name: Extract tag name
3131
shell: bash
3232
run: echo "##[set-output name=tag;]$(branch=${GITHUB_REF#refs/heads/}; echo ${branch/\//.})"
3333
id: extract_tag
3434
- run: node scripts/setVersion.js --tag ${{ steps.extract_tag.outputs.tag }}
35+
36+
- run: yarn build
37+
3538
- run: lerna exec --scope @microsoft/* -- "npm publish --tag ${{ steps.extract_tag.outputs.tag }} --access=public"
3639
if: github.repository == 'microsoftgraph/microsoft-graph-toolkit'
3740
env:

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
node-version: ${{ matrix.node-version }}
2424
- run: npm install -g yarn
2525
- run: yarn
26-
- run: yarn build
2726
- run: node scripts/setVersion.js --next
27+
- run: yarn build
2828
- run: yarn run pack
2929
- name: Upload a Build Artifact - package
3030
uses: actions/upload-artifact@v2

.github/workflows/push-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,17 @@ jobs:
5656
node-version: ${{ matrix.node-version }}
5757
registry-url: 'https://registry.npmjs.org'
5858

59-
- name: Build 🛠
59+
- name: Install Dependencies
6060
run: |
6161
npm install -g yarn lerna
6262
yarn
63-
yarn build
6463
6564
- name: Update package version
6665
run: node scripts/setVersion.js
6766

67+
- name: Build 🛠
68+
run: yarn build
69+
6870
- name: Publish npm packages
6971
run: lerna exec --scope @microsoft/* -- "npm publish --access=public"
7072
env:

.github/workflows/push.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,17 @@ jobs:
2525
node-version: ${{ matrix.node-version }}
2626
registry-url: 'https://registry.npmjs.org'
2727

28-
- name: Build 🛠
28+
- name: Install Dependencies
2929
run: |
3030
npm install -g yarn lerna
3131
yarn
32-
yarn build
3332
3433
- name: Set Preview Version
3534
run: node scripts/setVersion.js --next
3635

36+
- name: Build 🛠
37+
run: yarn build
38+
3739
- name: Publish preview packages 🚀
3840
run: lerna exec --scope @microsoft/* -- "npm publish --tag next --access=public"
3941
env:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "root",
33
"private": true,
4-
"version": "2.2.1",
4+
"version": "2.3.0",
55
"workspaces": [
66
"packages/*",
77
"packages/providers/*",

packages/mgt-element/src/utils/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
// THIS FILE IS AUTO GENERATED
99
// ANY CHANGES WILL BE LOST DURING BUILD
1010

11-
export const PACKAGE_VERSION = '2.2.1';
11+
export const PACKAGE_VERSION = '2.3.0';

0 commit comments

Comments
 (0)