Skip to content

Fix Inline style

Fix Inline style #18

Workflow file for this run

name: Publish Package
on:
push:
tags:
- "v*"
permissions: write-all
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Get tag version
id: get_tag_version
run: echo "::set-output name=tag_version::${GITHUB_REF#refs/tags/}"
- name: Update package.json version
run: |
cd projects/layout-components
npm version --no-git-tag-version ${{ steps.get_tag_version.outputs.tag_version }}
git config --global user.name "nemobot"
git config --global user.email "[email protected]"
git add package.json
git commit -m "Update package version"
git push origin HEAD:main
- name: Build package
run: npm run ng build layout-components
- name: Publish to npm
uses: JS-DevTools/npm-publish@v3
with:
package: "dist/layout-components/package.json"
token: ${{ secrets.NPM_TOKEN }}
access: "public"
provenance: true
- name: Publish to Github
uses: JS-DevTools/npm-publish@v3
with:
package: "dist/layout-components/package.json"
registry: "https://npm.pkg.github.com"
token: ${{ github.token }}
access: "public"
provenance: true