Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Restore publishing scripts for continuous delivery #966

Merged
merged 18 commits into from
Oct 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/cd-fonts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
deploy_npm:
defaults:
run:
working-directory: "packages/fonts"
working-directory: "/"
name: Deploy to npm
runs-on: ubuntu-latest
steps:
Expand All @@ -28,9 +28,14 @@ jobs:
run: npm install --no-audit

- name: Publish package
run: bash deploy.sh
run: bash scripts/build_fonts.sh
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

-name: Deploy
run: bash publish/fonts.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/cd-vocabulary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
deploy_npm:
defaults:
run:
working-directory: "packages/vocabulary"
working-directory: "/"
name: Deploy to npm
runs-on: ubuntu-latest
steps:
Expand All @@ -28,9 +28,14 @@ jobs:
run: npm install --no-audit

- name: Publish package
run: bash deploy.sh
run: bash scripts/build_vocabulary.sh
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

-name: Deploy
run: bash publish/vocabulary.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/cd-vue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
deploy_npm:
defaults:
run:
working-directory: "packages/vue-vocabulary"
working-directory: "/"
name: Deploy to npm
runs-on: ubuntu-latest
steps:
Expand All @@ -27,6 +27,11 @@ jobs:
run: npm install --no-audit

- name: Publish package
run: bash deploy.sh
run: bash scripts/build_vue_vocabulary.sh
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

-name: Deploy
run: bash publish/vue-vocabulary.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20 changes: 20 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved

set -o errexit
set -o errtrace
set -o nounset

trap '_es=${?};
_lo=${LINENO};
_co=${BASH_COMMAND};
echo "${0}: line ${_lo}: \"${_co}\" exited with a status of ${_es}";
exit ${_es}' ERR

npm run build:storybook
cp package.json dist/
cp README.md dist/
sed -i -e 's/say, fonts/here, vue-vocabulary/' -e 's/cd packages\/fonts/cd packages\/vue-vocabulary/' dist/README.md
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved
cp LICENSE dist/

cd dist
npm publish --access public
20 changes: 20 additions & 0 deletions publish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved
MuluhGodson marked this conversation as resolved.
Show resolved Hide resolved

set -o errexit
set -o errtrace
set -o nounset

trap '_es=${?};
_lo=${LINENO};
_co=${BASH_COMMAND};
echo "${0}: line ${_lo}: \"${_co}\" exited with a status of ${_es}";
exit ${_es}' ERR

npm run build:storybook
cp package.json dist/
cp README.md dist/
sed -i -e 's/say, fonts/here, vue-vocabulary/' -e 's/cd packages\/fonts/cd packages\/vue-vocabulary/' dist/README.md
cp LICENSE dist/

cd dist
npm publish --access public
20 changes: 20 additions & 0 deletions publish/fonts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -o errexit
set -o errtrace
set -o nounset

trap '_es=${?};
_lo=${LINENO};
_co=${BASH_COMMAND};
echo "${0}: line ${_lo}: \"${_co}\" exited with a status of ${_es}";
exit ${_es}' ERR

npm run build:storybook
cp package.json dist/
cp README.md dist/
sed -i -e 's/say, fonts/here, fonts/' dist/README.md
cp LICENSE dist/

cd dist
npm publish --access public
20 changes: 20 additions & 0 deletions publish/vocabulary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -o errexit
set -o errtrace
set -o nounset

trap '_es=${?};
_lo=${LINENO};
_co=${BASH_COMMAND};
echo "${0}: line ${_lo}: \"${_co}\" exited with a status of ${_es}";
exit ${_es}' ERR

npm run build:storybook
cp package.json dist/
cp README.md dist/
sed -i -e 's/say, fonts/here, vocabulary/' -e 's/cd packages\/fonts/cd packages\/vocabulary/' dist/README.md
cp LICENSE dist/

cd dist
npm publish --access public
20 changes: 20 additions & 0 deletions publish/vue-vocabulary.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

set -o errexit
set -o errtrace
set -o nounset

trap '_es=${?};
_lo=${LINENO};
_co=${BASH_COMMAND};
echo "${0}: line ${_lo}: \"${_co}\" exited with a status of ${_es}";
exit ${_es}' ERR

npm run build:storybook
cp package.json dist/
cp README.md dist/
sed -i -e 's/say, fonts/here, vue-vocabulary/' -e 's/cd packages\/fonts/cd packages\/vue-vocabulary/' dist/README.md
cp LICENSE dist/

cd dist
npm publish --access public