mirror of
https://github.com/oceanprotocol/ens-proxy.git
synced 2024-12-02 05:57:34 +01:00
28 lines
595 B
YAML
28 lines
595 B
YAML
name: 'Publish'
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '**'
|
|
|
|
jobs:
|
|
npm:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '18'
|
|
registry-url: https://registry.npmjs.org/
|
|
- run: npm ci
|
|
|
|
# pre-releases, triggered by `next` as part of git tag
|
|
- run: npm publish --tag next
|
|
if: ${{ contains(github.ref, 'next') }}
|
|
|
|
# production releases
|
|
- run: npm publish
|
|
if: ${{ !contains(github.ref, 'next') }}
|