Skip to content

Commit

Permalink
fix: add ci and node20
Browse files Browse the repository at this point in the history
  • Loading branch information
skdamico committed Mar 8, 2024
1 parent e5c5957 commit 98f53df
Show file tree
Hide file tree
Showing 6 changed files with 4,538 additions and 954 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,40 @@
name: action-build

on:
push:
branches:
- main
- next
paths-ignore:
- "dist/**"
- "README.md"
- CHANGELOG.md

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_GOODBOT_TOKEN }}
ref: ${{ github.ref }}
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "yarn"
- name: Install Packages
run: yarn install
- run: yarn build
# - run: |
# git config user.name 'goodtimegoodbot'
# git config user.email 'goodbot@goodtime.io'
# git add dist
# git commit -m "chore: update dist"
# git push
- name: Release
env:
FONTAWESOME_NPM_TOKEN: ${{ secrets.FONTAWESOME_NPM_TOKEN }}
GOODTIME_NPM_TOKEN: ${{ secrets.GOODTIME_NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_GOODBOT_TOKEN }}
run: yarn semantic-release
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
20
16 changes: 8 additions & 8 deletions action.yml
@@ -1,13 +1,13 @@
name: 'Get Changed Files'
description: 'Saves lists of changed files as JSON for use by other actions.'
author: 'Dustin Falgout <dustin@falgout.us>'
name: "Get Changed Files"
description: "Saves lists of changed files as JSON for use by other actions."
author: "GoodTime Engineering <eng@goodtime.io>"
runs:
using: 'node16'
main: 'dist/index.js'
using: "node20"
main: "dist/index.js"
inputs:
token:
description: GitHub Personal Access Token
required: true
required: true
outputs:
all:
description: JSON array of all changed files that weren't removed
Expand All @@ -20,5 +20,5 @@ outputs:
removed:
description: JSON array of removed files
branding:
icon: 'search'
color: 'gray-dark'
icon: "search"
color: "gray-dark"

0 comments on commit 98f53df

Please sign in to comment.