mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
8d938e205b
Adds a workflow that, on every push to master, will publish new versions of interface subpackages to the NPM registry if any are available. Staged to trigger on a test branch for now.
67 lines
1.6 KiB
YAML
67 lines
1.6 KiB
YAML
name: publish-npm-packages
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'jt/npm-publish'
|
|
jobs:
|
|
publish-api:
|
|
runs-on: ubuntu-latest
|
|
name: "Publish '@urbit/api' if a new version is available"
|
|
defaults:
|
|
run:
|
|
working-directory: 'pkg/npm/api'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
- run: 'npm install'
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
with:
|
|
check-version: true
|
|
dry-run: true
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
publish-http-api:
|
|
runs-on: ubuntu-latest
|
|
name: "Publish '@urbit/http-api' if a new version is available"
|
|
defaults:
|
|
run:
|
|
working-directory: 'pkg/npm/http-api'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
- run: 'npm install'
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
with:
|
|
check-version: true
|
|
dry-run: true
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|
|
publish-eslint-config:
|
|
runs-on: ubuntu-latest
|
|
name: "Publish '@urbit/eslint-config' if a new version is available"
|
|
defaults:
|
|
run:
|
|
working-directory: 'pkg/npm/eslint-config'
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
- run: 'npm install'
|
|
- uses: JS-DevTools/npm-publish@v1
|
|
with:
|
|
check-version: true
|
|
dry-run: true
|
|
token: ${{ secrets.NPM_TOKEN }}
|
|
|