Skip to content

Bump @actions/core from 2.0.2 to 3.0.1 #1987

Bump @actions/core from 2.0.2 to 3.0.1

Bump @actions/core from 2.0.2 to 3.0.1 #1987

Workflow file for this run

name: Continuous Integration
on:
pull_request:
push:
branches:
- main
- "releases/*"
permissions:
pull-requests: read
jobs:
test-typescript:
name: TypeScript Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v6
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
id: npm-ci
run: npm ci
- name: Check Format
id: npm-format-check
run: npm run format:check
- name: Lint
id: npm-lint
run: npm run lint
- name: Test
id: npm-ci-test
run: npm run ci-test
- name: Upload Coverage Report
id: upload-coverage
uses: actions/upload-artifact@v7
with:
name: coverage-report
path: coverage/
- name: SonarCloud Scan
id: sonar-scan
uses: SonarSource/sonarcloud-github-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Test Local Action
id: test-action
uses: ./
with:
path: "README.md"
- name: Print Output
id: output
run: echo "${{ steps.test-action.outputs.contents }}"
create-release:
name: Create release
needs: [ test-typescript, test-action ]
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v4
with:
versionSpec: "6.x"
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v4
- name: Create Release (tag)
uses: ncipollo/release-action@v1.21.0
with:
allowUpdates: false
skipIfReleaseExists: true
draft: false
makeLatest: false
tag: v${{ steps.gitversion.outputs.semVer }}
name: Release v${{ steps.gitversion.outputs.semVer }}
generateReleaseNotes: true
body: Release ${{ steps.gitversion.outputs.semVer }} of ${{
github.event.repository.name }}
- name: Create Release (latest)
uses: ncipollo/release-action@v1.21.0
with:
allowUpdates: true
skipIfReleaseExists: false
draft: false
makeLatest: true
tag: latest
name: Release v${{ steps.gitversion.outputs.semVer }}
generateReleaseNotes: true
body: Release ${{ steps.gitversion.outputs.semVer }} of ${{
github.event.repository.name }}