Skip to content

Commit

Permalink
chore(build): updates build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Russell Green committed Aug 1, 2024
1 parent f628770 commit 11950fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 15 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,9 @@ git push --delete origin <tagname>

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<tagname>`.
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)_

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 11950fa

Please sign in to comment.