Skip to content

fix: build

fix: build #20

Workflow file for this run

name: Build and Publish
on:
push:
branches: [main]
jobs:
semantic-release:
runs-on: ubuntu-latest
outputs:
release-version: ${{ steps.semantic.outputs.new_release_version }}
new-release-published: ${{ steps.semantic.outputs.new_release_published }}
steps:
- uses: actions/checkout@v3
- uses: cycjimmy/semantic-release-action@v3
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build-and-publish:
needs: semantic-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "18"
registry-url: "https://npm.pkg.github.com"
scope: "@flanksource"
- name: Build
run: |
git submodule update --init --recursive
npm install
npm run svg
- name: Publish
run: |
cd react-icons/packages/_react-icons_all
npm version ${{ needs.semantic-release.outputs.release-version }} --no-git-tag-version
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}