Skip to content

Commit

Permalink
ci: simplify onRelease GHA (#526)
Browse files Browse the repository at this point in the history
* ci: simplify onRelease GHA

* ci: remove the token for now as it is not needed for an npm release
  • Loading branch information
gbockus-sf authored Nov 15, 2022
1 parent 44cc9b3 commit d21929b
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
name: release

name: npm release
# when a github release happens, publish an npm package,
on:
push:
tags:
- v*
release:
types: [released]

jobs:
publish:
runs-on: ubuntu-latest
container:
image: node:lts
steps:
- uses: actions/checkout@v2
npm:
runs-on: ubuntu-latest
container:
image: node:lts
steps:
- uses: actions/checkout@v3
- name: Set .npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: yarn publish-lsp

0 comments on commit d21929b

Please sign in to comment.