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

feat/release-package #2

Merged
merged 1 commit into from
Jul 1, 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
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