Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kkiyama117 committed Jan 2, 2021
1 parent 2566b74 commit 6ae0e7d
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 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: coc-toml CI
name: coc-toml Publish

on:
release:
Expand All @@ -12,47 +12,38 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
submodules: true
- uses: actions/setup-node@v1
with:
node-version: 14
- name: prettier
run: |
yarn --frozen-lockfile
yarn prettier
npm ci
npm run prettier
publish-npm:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
submodules: true
- uses: actions/setup-node@v1
with:
always-auth: true
# always-auth: true
node-version: 14
registry-url: 'https://registry.npmjs.org'
- run: npm i
registry-url: 'https://registry.npmjs.org/'
- run: npm ci
- run: npm publish
env:
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_AUTH_TOKEN: ${{secrets.npm_token}}
publish-gpr:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
submodules: true
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com/'
scope: '@kkiyama117'
- run: npm i
node-version: 14
registry-url: 'https://npm.pkg.github.com/'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 6ae0e7d

Please sign in to comment.