wishthis/node_modules/fomantic-ui/.github/workflows/release.yml
2022-04-07 09:06:43 +02:00

31 lines
841 B
YAML

name: Release
on:
release:
types: [released]
jobs:
publish:
name: Build new Release
runs-on: ubuntu-latest
if: github.repository == 'fomantic/Fomantic-UI'
steps:
- uses: actions/checkout@v2
with:
ref: master
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: pre-setup
run: sh ./scripts/preinstall.sh
- name: install dependencies
run: yarn
- name: fomantic install & build
run: yarn gulp install
- name: publish to npm
env:
CI: true
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION }}
run: |
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
yarn config set registry https://registry.npmjs.org
yarn publish --non-interactive