Skip to content

Merge pull request #44 from sigrennesmetropole/uiheader #45

Merge pull request #44 from sigrennesmetropole/uiheader

Merge pull request #44 from sigrennesmetropole/uiheader #45

name: Node.js Package
on:
release:
push:
branches:
- main
jobs:
patch:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Git config
run: |
git config --global user.email "github-actions[bot]"
git config --global user.name "github-actions[bot]@users.noreply.github.com"
- name: Version bump
run: npm version patch
- name: Git push version bump
run: git push origin main
build:
if: ${{ always() }}
needs: patch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
publish-gpr:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
with:
ref: 'main'
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}