Skip to content

Commit

Permalink
chore: Update npm dependency to Node.js 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
chadhutchins182 committed Aug 2, 2024
1 parent d6398ec commit 11d0fbb
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 25 deletions.
36 changes: 14 additions & 22 deletions .github/workflows/automated-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ on:
# Sequence of patterns matched against refs/tags
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10

env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
workflow_dispatch:

jobs:
build:
Expand All @@ -20,7 +18,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand All @@ -30,16 +28,15 @@ jobs:
- name: Test RELEASE_VERSION
run: |
echo $RELEASE_VERSION
echo ${{ env.RELEASE_VERSION }}
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.x"
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"

- name: Cache npm dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
Expand All @@ -50,24 +47,19 @@ jobs:

- run: npm run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: mikepenz/release-changelog-builder-action@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create_release
uses: actions/create-release@latest
- name: Create Release and Upload Asset
id: upload-release-asset
uses: softprops/action-gh-release@v2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: $RELEASE_VERSION
body: ${{ steps.github_release.outputs.changelog }}
draft: false
prerelease: false
name: Release $RELEASE_VERSION
make_latest: true
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chadhutchins182/oas3-tools",
"version": "0.10.9",
"version": "0.10.10",
"description": "Swagger-UI and API Rest Routing for Open API v3.",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit 11d0fbb

Please sign in to comment.