From 1e1744a2b1c5eed109a7e2e9b9878c15e59a634a Mon Sep 17 00:00:00 2001 From: Guillaume GABOREL Date: Wed, 19 Jun 2024 09:42:24 +0200 Subject: [PATCH] ci: update versions --- .github/workflows/codeql-analysis.yml | 2 +- .github/workflows/npmPublish.yml | 20 ++++++++++---------- .github/workflows/release.yml | 8 ++++---- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index dffd216..15bf793 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -35,7 +35,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/npmPublish.yml b/.github/workflows/npmPublish.yml index 23e1bd0..c6464ca 100644 --- a/.github/workflows/npmPublish.yml +++ b/.github/workflows/npmPublish.yml @@ -5,26 +5,26 @@ name: Node.js Package on: release: - types: [created] + types: [ created ] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm ci publish-npm: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ - run: npm ci - run: npm publish @@ -35,10 +35,10 @@ jobs: needs: publish-npm runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ cache: 'npm' - run: npm install -g @s3pweb/release-message-creator diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ca8d49..2b22243 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,10 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 cache: 'npm' - run: npm ci - run: | @@ -20,5 +20,5 @@ jobs: npm install -g @s3pweb/release-message-creator BODY=`create-github-message` curl -f -X POST -H "Authorization: token ${{secrets.TOKEN}}" \ - https://api.github.com/repos/s3pweb/simple-kafka-promise/releases \ + https://api.github.com/repos/${{github.repository}}/releases \ -d '{"tag_name":"'"${LAST_TAG}"'","name":"Version '"${LAST_TAG#v}"'","body":'"${BODY}"', "draft":false}'