feat: Run action on node20 (#25)

This commit is contained in:
sam 2023-09-12 23:21:29 +02:00 committed by GitHub
parent 84052e2208
commit e8af259fb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 26 additions and 27 deletions

View file

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
@ -64,7 +64,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:

View file

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
@ -36,7 +36,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:

View file

@ -21,7 +21,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pr-mpt/actions-merge-branch@v2
- uses: prompt/actions-merge-branch@v2
with:
from: "origin/${{ env.source }}"
commit: false

View file

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Load action build from cache
uses: actions/cache@v3
with:
@ -36,12 +36,15 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: Install Docker
uses: douglascamata/setup-docker-macos-action@main
- run: docker build -t example:${{ github.sha }} ./.github/tests
- run: npm install
- run: npm run build
- name: Load action build from cache
uses: actions/cache@v3
with:
path: dist
key: build-${{ github.sha }}
- uses: ./
id: extract
with:

View file

@ -13,10 +13,10 @@ jobs:
with:
ssh-key: "${{ secrets.COMMIT_KEY }}"
- name: Test that the tagged commit includes `dist`
uses: pr-mpt/actions-assert@v2
uses: prompt/actions-assert@v2
with:
assertion: npm://@assertions/directory-exists
expected: dist
- if: failure()
name: Delete invalid tag
uses: pr-mpt/actions-delete-tag@v1
uses: prompt/actions-delete-tag@v1