Skip to content

Commit

Permalink
release(workspace): v3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicegginton committed Sep 25, 2024
1 parent 98c4428 commit c06a194
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/publish-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:

env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

jobs:
publish:
Expand All @@ -11,16 +12,15 @@ jobs:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix develop
- run: setup-npm-config
- run: nix develop --command setup-npm-config
- run: mkdir publish
- run: nix build .#components
- run: cp -r result/* publish
- name: publish @arc-web/components
run: |
cd result \
&& npm publish --access public
- run: rm -rf result
run: nix develop --command npm publish publish/ --access public --dry-run
- run: sudo rm -rf publish result
- run: mkdir publish
- run: nix build .#react
- run: cp -r result/* publish
- name: publish @arc-web/react
run: |
cd result \
&& npm publish --access public
run: nix develop --command npm publish publish/ --access public
6 changes: 3 additions & 3 deletions lib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in
# this workspace is a monorepo and all dependencies
# are resolved via the workspace root package.json
src = cleanSource ./.;
npmDepsHash = "sha256-q3e3I3fgbr9rsQsXUR/Xs9+fGnJKv54tovx4zLPmphA=";
npmDepsHash = "sha256-7Ou/Bw4en7m7tknHVYJ9tPAV8croJ6NuCYuisL2neP0=";

# dont run the build scripts when rebuilding
# npm dependencies as node-keytar will fail
Expand All @@ -45,15 +45,15 @@ in
};

# writes the npm config file with the NPM_TOKEN
setup-npm-config = writers.writeRustBin "setup-npm-config" {} ''
setup-npm-config = writers.writeRustBin "setup-npm-config" { } ''
use std::fs::File;
use std::io::Write;
use std::env;
fn main() {
let npm_token = env::var("NPM_TOKEN").unwrap();
let mut file = File::create(".npmrc").unwrap();
file.write_all(format!("//registry.npmjs.org/:_authToken={}\n", npm_token).as_bytes()).unwrap();
file.write_all(format!("//registry.npmjs.org/:_authToken={}\nregistry=https://registry.npmjs.org/\nalways-auth=true\n", npm_token).as_bytes()).unwrap();
}
'';
}
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.4.0",
"version": "3.4.1",
"generators": "./generators.json",
"executors": "./executors.json",
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arc-web/components",
"description": "Web-components built on the ARC design system",
"version": "3.4.0",
"version": "3.4.1",
"author": "Arup (https://www.arup.com)",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@arc-web/react",
"description": "React wrapper around the web-components built on the ARC design system",
"version": "3.4.0",
"version": "3.4.1",
"author": "Arup (https://www.arup.com)",
"repository": {
"type": "git",
Expand All @@ -10,7 +10,7 @@
},
"type": "module",
"peerDependencies": {
"@arc-web/components": "3.4.0",
"@arc-web/components": "3.4.1",
"react": "^18.0.0"
},
"dependencies": {
Expand Down

0 comments on commit c06a194

Please sign in to comment.