Skip to content

3.6.2

3.6.2 #32

name: Publish Package
on:
release:
types: [published]
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node environment
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: npm ci
- name: Build Package
run: npm run build:comet-uswds
- name: Publish Package
run: cd packages/comet-uswds && npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}