Skip to content

Commit

Permalink
Merge pull request #87 from aj3sh/release-please-update
Browse files Browse the repository at this point in the history
ci: updated release-please and other actions versions for node 20
  • Loading branch information
subashcs authored May 20, 2024
2 parents 314e898 + 855bac8 commit 1dd7106
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 52 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
Expand All @@ -39,7 +39,7 @@ jobs:
run: npm run coverage

- name: Send coverage reports to CodeCov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
# Creates a Github release and NPM publish after the merge of
# release PR created by release-pr.yml
name: 'Release'
name: 'Release Please'

on:
push:
branches:
- main

permissions: {}
permissions:
contents: write
pull-requests: write

jobs:
release-please:
permissions:
contents: write # to create release commit (google-github-actions/release-please-action)
pull-requests: write # to create release PR (google-github-actions/release-please-action)

runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
- uses: googleapis/release-please-action@v4
id: release
with:
# NOTE: GITHUB_TOKEN doesn't run checks on Release PR
token: ${{ secrets.GITHUB_TOKEN }}
command: github-release
release-type: node
package-name: nepali-datetime

# The logic below handles the npm publication:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/release-pr.yml

This file was deleted.

1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
CHANGELOG.md
.release-please-manifest.json
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
10 changes: 10 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"include-component-in-tag": false,
"packages": {
".": {}
},
"pull-request-header": "Release PR",
"pull-request-title-pattern": "chore: release v${version}",
"release-type": "node"
}

0 comments on commit 1dd7106

Please sign in to comment.