Skip to content

docs: packages en stories voor form field label beschikbaar (#1035) #261

docs: packages en stories voor form field label beschikbaar (#1035)

docs: packages en stories voor form field label beschikbaar (#1035) #261

Workflow file for this run

name: publish
# Triggers the following workflows:
# - .github/workflows/chromatic.yml
on:
push:
branches:
- main
permissions:
contents: read # since GH_TOKEN is provided, we only need 'read'
pull-requests: write # Needed to create and update pull requests
id-token: write # https://docs.npmjs.com/generating-provenance-statements#publishing-packages-with-provenance-via-github-actions
jobs:
publish:
runs-on: ubuntu-latest
environment: publish
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Install pnpm package manager
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
- name: Set up Node.js version and cache
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version-file: .nvmrc
- name: Check for known security issues with npm packages
run: |
echo "Auditing npm dependencies before installing them. For more information, see: https://nldesignsystem.nl/pnpm-audit"
pnpm audit --audit-level critical
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm run build
- name: Upload visual-regression-testing artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: visual-regression-testing
path: packages/storybook-test/dist/
retention-days: 1
- name: Publish to the npm Registry
uses: changesets/action@c48e67d110a68bc90ccf1098e9646092baacaa87 # v1.6.0
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: "NL Design System"
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: "NL Design System"
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
commit: "docs(release): design system packages"
setupGitUser: false
title: "docs(release): design system packages"
publish: "pnpm run changeset:publish"