Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

Commit 60f712e

Browse files
authored
Merge pull request #32 from Rezonate-io/fix-all
Fix all
2 parents d52930c + 6de83e6 commit 60f712e

File tree

10 files changed

+1024
-178
lines changed

10 files changed

+1024
-178
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,8 @@ on:
55
branches:
66
- master
77

8-
env:
9-
NX_BRANCH: ${{ github.event.number }}
10-
NX_RUN_GROUP: ${{ github.run_id }}
11-
128
jobs:
13-
14-
prepare-env:
15-
runs-on: ubuntu-latest
16-
outputs:
17-
GITHUB_HEAD_REF: ${{ steps.script.outputs.headRef }}
18-
GITHUB_BASE_REF: ${{ steps.script.outputs.tagHash }}
19-
steps:
20-
- uses: actions/checkout@v2
21-
with:
22-
fetch-depth: 0
23-
24-
- name: Cache node modules
25-
id: cache
26-
uses: actions/cache@v2
27-
with:
28-
path: |
29-
**/node_modules
30-
key: ${{ env.DEPENDENCIES_CACHE }}-${{ hashFiles('package-lock.json') }}
31-
32-
- name: npm install
33-
if: steps.cache.outputs.cache-hit != 'true'
34-
run: npm install
35-
36-
- name: Set correct env vars
37-
id: script
38-
uses: ./tools/actions/set-master-vars
39-
409
release:
41-
needs: [ prepare-env ]
4210
runs-on: ubuntu-latest
4311
steps:
4412
- uses: actions/checkout@v2
@@ -55,7 +23,7 @@ jobs:
5523

5624
- name: Install dependencies
5725
if: steps.cache.outputs.cache-hit != 'true'
58-
run: npm ci --ignore-scripts
26+
run: npm i
5927

6028
- name: GIT config
6129
run: |
@@ -75,30 +43,4 @@ jobs:
7543
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
7644
npx nx run-many -t publish --all --base origin/master
7745
env:
78-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
79-
80-
changelog-task:
81-
runs-on: ubuntu-latest
82-
needs:
83-
- release
84-
steps:
85-
- uses: actions/checkout@v2
86-
with:
87-
fetch-depth: 0
88-
89-
- name: Cache node modules
90-
uses: actions/cache@v2
91-
with:
92-
path: |
93-
**/node_modules
94-
key: ${{ env.DEPENDENCIES_CACHE }}-${{ hashFiles('package-lock.json') }}
95-
96-
- name: GIT config
97-
run: |
98-
git config user.name "${GITHUB_ACTOR}"
99-
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
100-
101-
- name: nx workspace:version
102-
run: npx nx run workspace:version --prod
103-
env:
104-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

nx.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@
6565
},
6666
"version": {
6767
"executor": "@jscutlery/semver:version",
68-
"options": {}
68+
"options": {
69+
"syncVersions": true
70+
}
6971
},
7072
"prepare": {
7173
"dependsOn": ["^prepare"]

0 commit comments

Comments
 (0)