Skip to content

Instantly share code, notes, and snippets.

@ShariqT
Created January 6, 2022 01:04
Show Gist options
  • Save ShariqT/ed415471b4e44043eb855b9ab9ba1f99 to your computer and use it in GitHub Desktop.
Save ShariqT/ed415471b4e44043eb855b9ab9ba1f99 to your computer and use it in GitHub Desktop.
update_npm.yml
name: Current Release
on:
release:
types: [published]
jobs:
release:
name: Build and release new version to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Use Node
uses: actions/setup-node@v1
with:
node-version: 10.x
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Build
run: yarn build
- name: Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.SHARIQ_NPM_TOKEN }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment