Skip to content

ci(github-packages): adding publishing #60

ci(github-packages): adding publishing

ci(github-packages): adding publishing #60

Workflow file for this run

name: Release
on:
push:
branches:
- fix-github-package
defaults:
run:
working-directory: "packages/npm/send"
jobs:
release:
# If this is not here, CICD committing the changelog back will kick off a job to commit back the changelog (infinite loop)
if: github.actor != 'candle-admin'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.CANDLE_ADMIN_PAT }}
- name: Setup
uses: ./.github/actions/setup
# - name: Initialize the Npm Config
# run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build package
run: yarn prepare
# - name: Publish package to npmjs
# run: yarn release
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Initialize the git registry Config
run: npm config set //npm.pkg.github.com/:_authToken=$GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package to GitHub
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}