Skip to content

Publish Packages

Publish Packages #10

# 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: Publish Packages
on:
workflow_dispatch:
release:
types: [published]
jobs:
react-dates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@bugcrowd'
- run: yarn install
- name: Build
run: yarn build
- name: Version
run: yarn version --new-version "${GITHUB_REF:11}" --no-git-tag-version
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}