diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 0a0d2b8962..5a5251374c 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -1,6 +1,8 @@ name: Publish Release -on: push +on: + release: + types: [published] jobs: build: @@ -10,10 +12,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 - - name: Install Node.js 18.x + - name: Install Node.js 22.x uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 22.x registry-url: https://registry.npmjs.org/ - name: Configure AWS Credentials @@ -32,14 +34,31 @@ jobs: - name: Build library and website run: npm run build + - name: Test library + run: npm run test + + - name: Test library accessibility + run: npm run test:accessibility + + - name: Publish RELEASE to npm + run: | + sed -i "s#\"version\": \".*\"#\"version\": \"${TAG_NAME}\"#" ./packages/lib/package.json + cd packages/lib + npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} + TAG_NAME: ${{ github.event.release.tag_name }} + - name: Install scripts dependencies run: cd scripts && npm install - name: Move RELEASE website to S3 - run: node scripts/release-website.js 15.3.0 + run: node scripts/release-website.js $TAG_NAME + env: + TAG_NAME: ${{ github.event.release.tag_name }} - name: Execute script version - run: node scripts/create-version.js 15.3.0 + run: node scripts/create-version.js $TAG_NAME - name: Deploy version to S3 Bucket run: | diff --git a/README.md b/README.md index cf4d8317df..f198c27c37 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ const App = () => ( ## Where to start -Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.dxc.com/halstack/). +Learn everything you need to know about Halstack principles and components on the [official documentation site](https://developer.assure.dxc.com/halstack). ## Contributing diff --git a/packages/lib/src/flex/Flex.stories.tsx b/packages/lib/src/flex/Flex.stories.tsx index 99b1a9e265..c278117ee7 100644 --- a/packages/lib/src/flex/Flex.stories.tsx +++ b/packages/lib/src/flex/Flex.stories.tsx @@ -26,6 +26,11 @@ const Placeholder = styled.div<{ minWidth?: string; width?: string }>` const Flex = () => ( <> +