Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Merge pull request #52 from eisberg-labs/release-please--branches--ma… #6

Merge pull request #52 from eisberg-labs/release-please--branches--ma…

Merge pull request #52 from eisberg-labs/release-please--branches--ma… #6

name: Release Please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
tag_name: ${{ steps.release.outputs.tag_name}}
release_created: ${{ steps.release.outputs.release_created}}
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: release-please-config.json
manifest-file: .release-please-manifest.json
- name: Print release outputs for debugging
continue-on-error: true
run: |
echo "Release outputs:"
echo "${{ toJson(steps.release.outputs) }}"
release-loader:
if: ${{needs.release-please.outputs.release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- run: npm ci
- name: Start Xvfb
run: |
Xvfb :99 -screen 0 1024x768x24 &
export DISPLAY=:99
- name: Test
env:
DISPLAY: :99
run: |
sudo apt update && sudo apt install -y libxtst-dev libpng-dev
npm test
- run: npm run build
- run: zip -r nextjsnodeloader.zip dist
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.tag_name }} nextjsnodeloader.zip
- run: npm publish
env:
NPM_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}