Skip to content

new workflow

new workflow #16

Workflow file for this run

name: "publish npm"
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:

Check failure on line 8 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm install infineon-feedback
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{secrets.IFX_FEEDBACK_WIDGET}}
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org
- name: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.IFX_FEEDBACK_WIDGET}}