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: now using nx releases instead of semantic release #105

Merged
merged 2 commits into from
Nov 3, 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
8 changes: 6 additions & 2 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- name: Cancel previous runs
Expand Down Expand Up @@ -67,9 +70,10 @@ jobs:
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: npm run semantic-release:all
NPM_CONFIG_PROVENANCE: true
run: npx nx release -y

- name: Deploy to netlify
if: github.ref == 'refs/heads/master'
Expand Down
2 changes: 1 addition & 1 deletion benchmark/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export interface BenchmarkResult {
}

const benchmarkResultPath = `${__dirname}/../../../../web-app/src/assets/benchmarkResults.json`
const ignoredVersions = ['1.9.1', '1.10.0', '1.10.1', '1.10.2']
const ignoredVersions = ['1.9.1', '1.10.0', '1.10.1', '1.10.2', '1.10.3']

async function main() {
const packageVersions: string[] = JSON.parse(execSync('npm view ss-search versions --json').toString())
Expand Down
28 changes: 27 additions & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json", "{workspaceRoot}/.eslintignore", "{workspaceRoot}/eslint.config.js"],
"cache": true
},
"nx-release-publish": {
"options": {
"packageRoot": "dist/{projectName}"
}
}
},
"namedInputs": {
Expand Down Expand Up @@ -64,5 +69,26 @@
}
},
"useInferencePlugins": false,
"nxCloudId": "670f1d8b22b1a18844d39587"
"nxCloudId": "670f1d8b22b1a18844d39587",
"release": {
"projectsRelationship": "independent",
"changelog": {
"projectChangelogs": {
"createRelease": "github"
},
"workspaceChangelog": false
},
"projects": ["ss-search"],
"version": {
"conventionalCommits": true,
"preVersionCommand": "npx nx run-many -t build",
"generatorOptions": {
"packageRoot": "dist/{projectName}"
}
},
"git": {
"commit": true,
"tag": true
}
}
}
Loading
Loading