repos / starfx

a micro-mvc framework for react apps
git clone https://github.com/neurosnap/starfx.git

starfx / .github / workflows
Eric Bower  ·  2025-06-06

preview.yml

 1name: preview
 2
 3on: [pull_request]
 4
 5permissions:
 6  contents: read
 7
 8jobs:
 9  preview:
10    runs-on: ubuntu-latest
11    steps:
12      - name: checkout
13        uses: actions/checkout@v4
14      - name: get version
15        id: vars
16        run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//')
17      - name: setup node
18        uses: actions/setup-node@v2
19        with:
20          node-version: 18.x
21          registry-url: https://registry.npmjs.com
22      - name: install
23        run: npm install
24      - name: build
25        run: npm run build
26        env:
27          NPM_VERSION: ${{steps.vars.outputs.version}}
28
29      - name: Publish Preview Versions
30        run: npx pkg-pr-new publish '.' --template './examples/*'