diff --git a/.github/workflows/comment-deploy-url-to-pr.yaml b/.github/workflows/comment-deploy-url-to-pr.yaml index b154e5692..8dc7256a7 100644 --- a/.github/workflows/comment-deploy-url-to-pr.yaml +++ b/.github/workflows/comment-deploy-url-to-pr.yaml @@ -10,10 +10,9 @@ jobs: name: Comment deploy URL to PR steps: - name: Get branch hash - id: get_hash - run: echo "::set-output name=hash::$(echo '${{ github.ref }}' | shasum | awk '{print $1}')" + run: echo "PR_HASH=$(echo '${{ github.ref }}' | shasum | awk '{print $1}')" >> $GITHUB_ENV - name: Comment on PR uses: thollander/actions-comment-pull-request@1.0.1 with: - message: "" + message: "" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/document.yaml b/.github/workflows/document.yaml index b2229b883..58bef05dc 100644 --- a/.github/workflows/document.yaml +++ b/.github/workflows/document.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: persist-credentials: false diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 7fc5db33f..33de74cd6 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '16' - name: Install diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fb79eb3c4..309a0fb0f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,9 +10,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '16' - name: Install diff --git a/.github/workflows/test-and-demo.yaml b/.github/workflows/test-and-demo.yaml index 5f957e93c..1b9dd09ef 100644 --- a/.github/workflows/test-and-demo.yaml +++ b/.github/workflows/test-and-demo.yaml @@ -21,11 +21,11 @@ jobs: behavioral: ${{ steps.filter.outputs.behavioral }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 # chromatic needs access to the history - name: Check Paths - uses: dorny/paths-filter@v2.9.0 + uses: dorny/paths-filter@v2 id: filter with: filters: | @@ -35,11 +35,11 @@ jobs: behavioral: - 'vue-components/**' - name: Set up node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: '16' - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 id: cache with: path: | @@ -47,7 +47,7 @@ jobs: */node_modules key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json', '**/package.json') }} - name: Cache artifacts - uses: actions/cache@v2 + uses: actions/cache@v3 id: dist with: path: | @@ -65,15 +65,15 @@ jobs: needs: setup steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 # chromatic needs access to the history - name: Set up node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '16' - name: Restore dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | node_modules @@ -88,22 +88,22 @@ jobs: if: ${{ needs.setup.outputs.visual == 'true' || github.ref == 'refs/heads/master' }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 # chromatic needs access to the history - name: Set up node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '16' - name: Restore dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | node_modules */node_modules key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json', '**/package.json') }} - name: Restore artifacts - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | */dist @@ -118,16 +118,16 @@ jobs: needs: setup if: ${{ github.repository_owner == 'wmde' }} outputs: - deploy_url: ${{ steps.netlify_deploy.outputs.url }} + deploy_url: ${{ env.NETLIFY_DEPLOY_URL }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '16' - name: Restore dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | node_modules @@ -136,16 +136,15 @@ jobs: - name: Build Project run: npm run build:storybook - name: Deploy to netlify - id: netlify_deploy - run: echo "::set-output name=url::$(npx -p netlify-cli + run: echo "NETLIFY_DEPLOY_URL=$(npx -p netlify-cli netlify deploy --dir=docs/dist --json --alias $(echo '${{ github.ref }}' | shasum | awk '{print $1}') - | jq '.deploy_url' --raw-output)" + | jq '.deploy_url' --raw-output)" >> $GITHUB_ENV env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - name: Print deploy URL - run: echo ${{ steps.netlify_deploy.outputs.url }} + run: echo ${{ env.NETLIFY_DEPLOY_URL }} browser-tests: runs-on: ubuntu-latest @@ -153,13 +152,13 @@ jobs: if: ${{ needs.setup.outputs.behavioral == 'true' || github.ref == 'refs/heads/master' }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up node - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: '16' - name: Restore dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | node_modules