Skip to content

feat: add cargo example #96

feat: add cargo example

feat: add cargo example #96

Workflow file for this run

name: Publish Beta
on:
push:
branches:
- develop
workflow_run:
workflows: ['Build']
types:
- completed
workflow_dispatch:
inputs:
target:
description: 'Publish beta'
required: true
default: 'beta'
type: choice
options:
- beta
jobs:
publish_beta:
name: πŸš€ Publish Beta to npm
runs-on: ubuntu-latest
if: github.event.inputs.target == 'beta' && github.ref == 'refs/heads/develop'
steps:
- uses: actions/checkout@v2
- name: βš™οΈ Set up Node.js ${{ env.node_version }}
uses: actions/setup-node@v2
with:
node-version: ${{ env.node_version }}
- name: πŸ”§ Install dependencies
run: npm ci
- name: πŸ—οΈ Build
run: npm run build
- name: πŸ” Authenticate to npm
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: πŸš€ Publish beta to npm
run: npm publish --tag beta --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}