Skip to content

Commit

Permalink
Merge pull request #2 from equinor/feat/release-package
Browse files Browse the repository at this point in the history
feat/release-package
  • Loading branch information
mariush2 authored Jul 1, 2024
2 parents de52ebf + 3084431 commit b433eca
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: npm run test:ci

- name: Build Components
run: npm run build-components:ci
run: npm run build

- uses: JS-DevTools/npm-publish@v1
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This package contains components, utils, providers and hooks that are used to co

// TODO: Setup storybook
# Quick links
- [Storybook](https://storybook-amplify-components.app.radix.equinor.com/)
- [Storybook](https://storybook-subsurface-app-management.app.radix.equinor.com/)

# Building and publishing amplify-sam
# Building and publishing

Build and publish is done automatically when code is merged into `main` branch, if the package.json version number is higher.

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"types": "dist/types/index.d.ts",
"author": "Amplify Team",
"license": "ISC",
"homepage": "https://github.com/equinor/amplify-sam#readme",
"homepage": "https://github.com/equinor/subsurface-app-management#readme",
"bugs": {
"url": "https://github.com/equinor/amplify-sam/issues"
"url": "https://github.com/equinor/subsurface-app-management/issues"
},
"files": [
"dist/*"
Expand Down
2 changes: 1 addition & 1 deletion radixconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
name: storybook-amplify-sam
name: storybook-subsurface-app-management
spec:
environments:
- name: production
Expand Down
8 changes: 4 additions & 4 deletions tooling/build-and-use.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function runTasks() {
}
const answer = await rl.question(
chalk.greenBright(
'Write name of project you want to copy local amplify-components into:'
'Write name of project you want to copy local subsurface-app-management into:'
) + `\n> `
);
selectedDir = dirs.find(
Expand Down Expand Up @@ -106,16 +106,16 @@ async function runTasks() {
});

await runTask({
command: `rm -rf ../${selectedDir}/client/node_modules/@equinor/amplify-sam/dist`,
command: `rm -rf ../${selectedDir}/client/node_modules/@equinor/subsurface-app-management/dist`,
name: `Removing old ${chalk.bold.greenBright(
'amplify-components/dist'
'subsurface-app-management/dist'
)} folder from ${chalk.bold.greenBright(
`${selectedDir}/client/node_modules`
)}`,
});

await runTask({
command: `cp -r ./dist ../${selectedDir}/client/node_modules/@equinor/amplify-sam/dist`,
command: `cp -r ./dist ../${selectedDir}/client/node_modules/@equinor/subsurface-app-management/dist`,
name: `Copying newly built ${chalk.bold.greenBright(
'dist'
)} folder into ${chalk.bold.greenBright(
Expand Down

0 comments on commit b433eca

Please sign in to comment.