Skip to content

Commit

Permalink
chore(Nx): setup Nx release and drop @jscutlery/semver plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dgonzalezr committed Dec 17, 2024
1 parent 4adfede commit b795cb1
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 720 deletions.
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

0 comments on commit b795cb1

Please sign in to comment.