Skip to content

Commit

Permalink
fix(github):update workflow, add use
Browse files Browse the repository at this point in the history
  • Loading branch information
guocaoyi committed Jun 30, 2022
1 parent 58da0af commit 5ad8b60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,26 @@ on: [push]

jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
- name: Logger
run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."

- name: Checkout release branch code
- uses: actions/checkout@v3
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Use Node.js
- uses: actions/setup-node@v3
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org

- run: npm ci
- name: NPM CI
run: npm ci

- name: Publish to NPM
- run: npm publish || true
run: npm publish || true
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[![npm](https://img.shields.io/npm/v/create-chrome-ext?logo=npm)](https://www.npmjs.com/package/create-chrome-ext)
[![npm-download](https://img.shields.io/npm/dw/create-chrome-ext)](https://www.npmjs.com/package/create-chrome-ext)
![GitHub language count](https://img.shields.io/github/languages/count/guocaoyi/create-chrome-ext)
[![NPM Publish](https://github.com/guocaoyi/create-chrome-ext/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/guocaoyi/create-chrome-ext/actions/workflows/npm-publish.yml)

> Next generation chrome extension generater
Expand Down

0 comments on commit 5ad8b60

Please sign in to comment.