2021-03-02 14:12:09 +03:00
|
|
|
name: publish-npm-packages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2021-03-02 14:39:17 +03:00
|
|
|
- 'master'
|
2021-03-30 22:39:41 +03:00
|
|
|
paths:
|
|
|
|
- 'pkg/npm/**'
|
2021-03-02 14:12:09 +03:00
|
|
|
jobs:
|
|
|
|
publish-api:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Publish '@urbit/api' if a new version is available"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
- run: 'npm install'
|
2021-03-02 14:37:11 +03:00
|
|
|
working-directory: 'pkg/npm/api'
|
2021-03-02 14:12:09 +03:00
|
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
|
|
with:
|
|
|
|
check-version: true
|
2021-03-02 14:34:46 +03:00
|
|
|
package: './pkg/npm/api/package.json'
|
2021-03-02 14:12:09 +03:00
|
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
|
|
|
|
publish-http-api:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Publish '@urbit/http-api' if a new version is available"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
- run: 'npm install'
|
2021-03-02 14:37:11 +03:00
|
|
|
working-directory: 'pkg/npm/http-api'
|
2021-03-02 14:12:09 +03:00
|
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
|
|
with:
|
|
|
|
check-version: true
|
2021-03-02 14:34:46 +03:00
|
|
|
package: './pkg/npm/http-api/package.json'
|
2021-03-02 14:12:09 +03:00
|
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
|
|
|
|
publish-eslint-config:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: "Publish '@urbit/eslint-config' if a new version is available"
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
lfs: true
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
- run: 'npm install'
|
2021-03-02 14:37:11 +03:00
|
|
|
working-directory: 'pkg/npm/eslint-config'
|
2021-03-02 14:12:09 +03:00
|
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
|
|
with:
|
|
|
|
check-version: true
|
2021-03-02 14:34:46 +03:00
|
|
|
package: './pkg/npm/eslint-config/package.json'
|
2021-03-02 14:12:09 +03:00
|
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
|