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

release.yml

 1name: release to npm
 2
 3on:
 4  release:
 5    types: [published]
 6
 7permissions:
 8  contents: read
 9
10jobs:
11  release:
12    runs-on: ubuntu-latest
13    steps:
14      - name: checkout
15        uses: actions/checkout@v4
16      - name: get version
17        id: vars
18        run: echo ::set-output name=version::$(echo ${{github.ref_name}} | sed 's/^v//')
19      - name: setup node
20        uses: actions/setup-node@v2
21        with:
22          node-version: 18.x
23          registry-url: https://registry.npmjs.com
24      - name: install
25        run: npm install
26      - name: build
27        run: npm run build
28      - name: publish
29        run: npm publish --access=public
30        working-directory: .
31        env:
32          NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}