pashto-dictionary/.github/workflows/publish-types.yml

31 lines
733 B
YAML
Raw Normal View History

2021-09-17 20:39:10 +00:00
name: Publish Types
on:
push:
branches: [ 'master' ]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
env:
LINGDOCS_NPM_TOKEN: ${{ secrets.LINGDOCS_NPM_TOKEN }}
steps:
2022-10-17 10:51:02 +00:00
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
2021-09-17 20:39:10 +00:00
with:
2022-10-12 08:09:23 +00:00
node-version: 16
2021-09-17 20:39:10 +00:00
- name: Check if version has been updated
id: check
uses: EndBug/version-check@v1
with:
diff-search: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish when version changed
if: steps.check.outputs.changed == 'true'
run: |
2021-09-17 20:43:00 +00:00
npm install
2021-10-11 00:01:02 +00:00
npm install @lingdocs/pashto-inflector
2021-09-17 20:39:10 +00:00
npm run build
npm publish