Skip to content

Commit

Permalink
Update lots of CI steps & enable CI npm caching
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed May 2, 2023
1 parent e8c54d7 commit 15d4859
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@ jobs:
runs-on: ubuntu-latest
container: httptoolkit/act-build-base:v2.0.0
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

# Install Node 16
- uses: actions/setup-node@v1
- uses: actions/setup-node@v3
with:
node-version: 16.16.0
cache: 'npm'

- run: npm install -g npm@8.5.5

Expand All @@ -38,7 +39,7 @@ jobs:
SENTRY_PROJECT: httptoolkit-ui
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*
Expand All @@ -51,9 +52,9 @@ jobs:
container: httptoolkit/act-build-base
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: dist
path: dist
Expand Down Expand Up @@ -82,14 +83,14 @@ jobs:
container: httptoolkit/act-build-base
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: dist
path: dist

- uses: docker/setup-buildx-action@v1
- uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
Expand All @@ -99,7 +100,7 @@ jobs:

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v3
uses: docker/metadata-action@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: httptoolkit/ui
Expand All @@ -109,7 +110,7 @@ jobs:
type=sha
- name: Publish to Docker Hub
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 15d4859

Please sign in to comment.