diff --git a/.github/workflows/deploy-pr-preview.yaml b/.github/workflows/deploy-pr-preview.yaml deleted file mode 100644 index 736513e..0000000 --- a/.github/workflows/deploy-pr-preview.yaml +++ /dev/null @@ -1,40 +0,0 @@ -name: Preview -on: pull_request - -jobs: - deploy-pr-preview: - name: Deploy Storybook - runs-on: ubuntu-latest - steps: - - name: Set up token - id: token - # This is a base64-encoded access token for the "migtools-preview-bot" GitHub account, which has no secure access and is only used to post comments. - run: echo "::set-output name=GH_TOKEN::`echo 'Z2hwX2ttclAzWUtjdUk4ZWJVRVVpZFJkdWlUOTJBS2pGODI2NUlyeQo=' | base64 -d`" - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: lts/* - - name: Install dependencies - run: yarn install - - name: Build Storybook - run: yarn storybook:export - - name: Generate Surge URL - uses: actions/github-script@v3 - id: surge-url - with: - github-token: ${{ steps.token.outputs.GH_TOKEN }} - script: | - const { issue: { number: issue_number } } = context; - return `migtools-lib-ui-pr-${issue_number}-preview.surge.sh`; - result-encoding: string - - name: Install Surge - run: npm install -g surge - - name: Deploy Storybook to Surge - run: surge ./storybook-static/ "${{steps.surge-url.outputs.result}}" --token 1d92e83069ba094ba43fbb71460a5f84 - - name: Post URL as PR comment - uses: mshick/add-pr-comment@v1 - with: - message: '🚀 Deployed Storybook Preview: http://${{steps.surge-url.outputs.result}} ✨' - repo-token: ${{ steps.token.outputs.GH_TOKEN }} diff --git a/.github/workflows/test-and-release.yaml b/.github/workflows/test-and-release.yaml index f9f2839..cdbe763 100644 --- a/.github/workflows/test-and-release.yaml +++ b/.github/workflows/test-and-release.yaml @@ -8,6 +8,8 @@ jobs: test-and-release: name: Release to npm and publish docs runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout uses: actions/checkout@v3 @@ -25,14 +27,6 @@ jobs: run: yarn build - name: Release env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: yarn run semantic-release - - name: Build Storybook - run: yarn storybook:export - - name: Deploy Storybook to GitHub Pages - uses: JamesIves/github-pages-deploy-action@3.7.1 - with: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - BRANCH: gh-pages - FOLDER: storybook-static diff --git a/package.json b/package.json index a68abfa..8a616bf 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "@migtools/lib-ui", + "name": "@pf-consumer-testing/lib-ui", "version": "1.0.0", "main": "dist/index.js", "module": "dist/index.es.js", "files": [ "dist" ], - "repository": "https://github.com/migtools/lib-ui.git", + "repository": "https://github.com/patternfly-extension-testing/lib-ui.git", "publishConfig": { "access": "public", "branches": [ diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..e1ac8f4 --- /dev/null +++ b/renovate.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base"], + "enabledManagers": ["npm"], + "rangeStrategy": "bump", + "includeForks": true, + "packageRules": [ + { + "packagePatterns": ["*"], + "excludePackagePatterns": ["@patternfly/*"], + "enabled": false + }, + { + "datasources": ["npm"], + "packagePatterns": ["@patternfly/*"], + "excludePackageNames": ["@patternfly/documentation-framework", "@patternfly/patternfly-a11y"], + "groupName": "patternfly", + "followTag": "prerelease" + }, + { + "datasources": ["npm"], + "matchPackageNames": ["@patternfly/documentation-framework", "@patternfly/patternfly-a11y"], + "groupName": "patternfly", + "followTag": "latest" + } + ] + } + \ No newline at end of file