added homepage link to package config #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
cache: 'npm' | |
node-version-file: '.node-version' | |
- run: npm ci --no-fund --no-audit | |
- name: Run checks | |
run: npm run check:ci | |
release: | |
name: Release | |
needs: | |
- check | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'friedemannsommer' && github.ref_name == 'main' | |
concurrency: '${{ github.workflow }}-${{ github.ref }}' | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
cache: 'npm' | |
node-version-file: '.node-version' | |
registry-url: 'https://registry.npmjs.org' | |
- run: npm ci --no-fund --no-audit | |
- name: Create release PR or publish | |
uses: changesets/[email protected] | |
with: | |
title: 'ci(changesets): package release' | |
commit: 'ci(changesets): version package' | |
publish: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |