Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(Nx): configure nx release and remove additional Nx plugins #1382

Merged
merged 1 commit into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:

env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

permissions:
Expand All @@ -28,7 +29,7 @@ jobs:
- name: 🔍 Check GH_TOKEN
uses: ./.github/actions/check-token
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: $GH_TOKEN

- name: 🛠 Setup Volta
uses: volta-cli/action@v4
Expand All @@ -42,13 +43,13 @@ jobs:

- name: 👀 Check NPM credentials
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> .npmrc
npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 🚀 Publish BEEQ to NPM registry
run: npx nx run-many -t publish -p tag:publishable --parallel=1 --output-style=stream-without-prefixes
run: npx nx release publish --parallel=5 --output-style=stream
env:
NPM_CONFIG_PROVENANCE: true

- name: 🚚 Deploy BEEQ Storybook to GitHub Pages
uses: bitovi/[email protected]
Expand Down
8 changes: 0 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Conventional Commits 1.0.0](https://www.conventionalcommits.org/en/v1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)


## [1.7.0](https://github.com/Endava/BEEQ/compare/v1.6.1...v1.7.0) (2024-08-05)


Expand Down
40 changes: 40 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,46 @@
"inputs": ["default", "{workspaceRoot}/eslint.config.js"]
}
},
"release": {
"changelog": {
"workspaceChangelog": {
"createRelease": "github",
"renderOptions": {
"authors": true,
"mapAuthorsToGitHubUsernames": true,
"commitReferences": true,
"versionTitleDate": true
}
}
},
"conventionalCommits": {
"types": {
"feat": { "changelog": { "title": "Features ⚡️" } },
"fix": { "changelog": { "title": "Bug Fixes 🐞", "semverBump": "patch" } },
"test": { "changelog": { "title": "Test 🧪" }, "semverBump": "patch" },
"docs": { "changelog": { "title": "Documentation 📚", "semverBump": "patch" } },
"style": { "changelog": { "title": "Style 🎨", "semverBump": "patch" } },
"chore": { "changelog": { "title": "Chore ⚙️", "semverBump": "patch" } },
"perf": { "changelog": { "title": "Performance ⌛️", "semverBump": "patch" } },
"refactor": { "changelog": { "title": "Refactor 🛠️", "semverBump": "patch" } },
"release": false
}
},
"git": {
"commit": true,
"commitMessage": "release: {version} [skip ci]",
"stageChanges": true,
"tag": true
},
"projects": ["packages/*"],
"releaseTagPattern": "v{version}",
"version": {
"conventionalCommits": true,
"generatorOptions": {
"versionPrefix": "^"
}
}
},
"nxCloudAccessToken": "ZTI2Yzg0YzktODZiMi00Yjg2LTlhMmMtYWI3NDhkODkzZjlmfHJlYWQtb25seQ==",
"generators": {
"@nx/react": {
Expand Down
Loading