Skip to content

Adds the ability to register additional tokens via the @injectable de… #66

Adds the ability to register additional tokens via the @injectable de…

Adds the ability to register additional tokens via the @injectable de… #66

Workflow file for this run

name: Publish
on:
push:
branches:
- master
jobs:
publish_to_npm:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
- name: Check if version bump
id: check
uses: EndBug/[email protected]
- name: Log when unchanged
if: steps.check.outputs.changed != 'true'
run: echo "No version change"
- name: Install deps
if: steps.check.outputs.changed == 'true'
run: yarn
env:
CI: true
- name: Build
if: steps.check.outputs.changed == 'true'
run: yarn build
env:
CI: true
- name: Set NPM Token
if: steps.check.outputs.changed == 'true'
uses: filipstefansson/set-npm-token-action@v1
with:
token: ${{ secrets.NPM_TOKEN }}
- name: Publish new version
if: steps.check.outputs.changed == 'true'
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}