diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..1b30dd8 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,43 @@ +name: Build/Publish + +on: + push: + branches: + - master + - develop + - develop-* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: 18.x + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - name: Cache node modules + id: cache + uses: actions/cache@v3 + with: + # npm cache files are stored in `~/.npm` on Linux/macOS + path: ./ + key: ${{ runner.os }}-build-${{ hashFiles('**/package-lock.json','lib/**') }} + publish: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/cache/restore@v3 + with: + path: . + key: ${{ steps.cache.outputs.cache-primary-key }} + - name: Install SSH key + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.GITEA_SSH_KEY }} + name: gitea # optional + known_hosts: ${{ secrets.GITEA_KNOWN_HOST }} + - run: npm run semantic-release diff --git a/LICENSE b/LICENSE index 2071b23..bd66f50 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright (c) 2023 Hammer Technologies LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: