Skip to content

2.3.0

2.3.0 #17

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: Node.js Package
on:
push:
tags:
- v[0-9]+.[0-9]+.[0-9]+
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
cache: 'yarn'
- name: 📦 Install dependencies
run: yarn install --immutable
- name: 🚀 Publish
run: yarn npm publish
env:
YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN_PUBLISH__HFC_BOT}}
YARN_NPM_PUBLISH_REGISTRY: https://registry.npmjs.org/
publish-gpr:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
- name: Change package name
run: |
sed -i 's,@honestfoodcompany/pubsub,@deliveryhero/pubsub,' package.json
- name: 📦 Install dependencies
run: yarn install --no-immutable
- name: 🚀 Publish
run: yarn npm publish
env:
YARN_NPM_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
YARN_NPM_PUBLISH_REGISTRY: https://npm.pkg.github.com/