Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
ncalteen committed Nov 1, 2023
1 parent 211a810 commit 4a91017
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 21 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ on:
paths-ignore:
- '**.md'

permissions:
contents: read

jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest

permissions:
contents: read
statuses: write

steps:
- name: Checkout
id: checkout
Expand All @@ -30,7 +29,7 @@ jobs:
id: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .node-version
cache: npm

- name: Install Dependencies
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
branches:
- main

# This is required to be able to update tags and create releases
permissions:
contents: write

Expand All @@ -16,18 +15,17 @@ jobs:
name: Release Version
runs-on: ubuntu-latest

# Only run this job if the PR was merged
if: ${{ github.event.pull_request.merged == true }}
if: |
github.event.pull_request.merged == true &&
startsWith(github.head_ref, 'dependabot/') == false
steps:
# Checkout the repository with fetch-tags set to true
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-tags: true

# Get the version and update the tags to use in the release
- name: Tag
id: tag
uses: issue-ops/[email protected]
Expand All @@ -36,8 +34,6 @@ jobs:
workspace: ${{ github.workspace }}
ref: main

# Use the version output from the previous step for the release
# Prepend a 'v' to the beginning (e.g. 'v1.2.3')
- name: Create Release
id: release
uses: issue-ops/[email protected]
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,16 @@ on:
branches:
- main

permissions:
actions: read
checks: write
contents: read

jobs:
continuous-integration:
name: Continuous Integration
runs-on: ubuntu-latest

permissions:
actions: read
checks: write
contents: read
statuses: write

steps:
- name: Checkout
id: checkout
Expand All @@ -28,7 +27,7 @@ jobs:
id: setup-node
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .node-version
cache: npm

- name: Install Dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/super-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:

- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: 20
node-version-file: .node-version
cache: npm

- name: Install Dependencies
Expand Down
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.6.0

0 comments on commit 4a91017

Please sign in to comment.