diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 098d624..ec4531d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,16 +21,10 @@ jobs: node-version: 20 - name: Install dependencies - run: npm ci + run: npm install - - name: Lint - run: npm run lint:ci - - - name: Test - run: npm run test:ci - - - name: Build All Projects - run: npm run build:ci + - name: Run lint, tests, build + run: npm run ci # TODO: Figure out how to get github pages deployment to work. # Currently the GitHub Pages deployment throws an error: "Artifact diff --git a/README.md b/README.md index 1df21a4..35efb44 100644 --- a/README.md +++ b/README.md @@ -214,11 +214,9 @@ git push --delete origin To generate a new release, use the following steps: -1. Run `npm run nx -- release --skip-publish` locally. This will create a commit with the version and changelog updates -2. Commit changes `git add -A && git commit -m "chore: bumped version"`. -3. Create a tag for the new version `git tag v`. -4. Push the changes (including the new tag) to the remote repository with `git push && git push --tags`. -5. The publish workflow will automatically trigger and publish the packages to the npm registry. +1. Run `npm run nx -- release --skip-publish` locally. This will create a commit and tag +2. Push the changes (including the new tag) to the remote repository with `git push && git push --tags`. +3. The publish workflow will automatically trigger and publish the packages to the npm registry. _see more on these steps [here](https://nx.dev/recipes/nx-release/publish-in-ci-cd)_ diff --git a/package.json b/package.json index b796e79..66aaa0a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test": "nx test", "test:ci": "npm run test:all --codeCoverage", "test:all": "nx run-many -t test", - "test:affected": "nx affected -t lint --base=main --head=HEAD --parallel=5 && stylelint -- **/*.scss --fix" + "ci": "nx affected -t lint test build --base=origin/main --head=HEAD --parallel=5 && stylelint -- **/*.scss --fix" }, "private": true, "dependencies": {