Created
January 6, 2022 01:04
-
-
Save ShariqT/ed415471b4e44043eb855b9ab9ba1f99 to your computer and use it in GitHub Desktop.
update_npm.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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