Skip to content

Commit

Permalink
Update publish action to include token into env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxStalker committed Jun 2, 2021
1 parent 88fdf6d commit 87cf3fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Publish
on:
# allow to manually run this workflow
workflow_dispatch:
# run when new version tag is pushed
push:
tags:
- 'v*'
# run on published release. this will not trigger, when release draft is created
release:
types:
Expand All @@ -33,6 +29,10 @@ jobs:
- name: Install dependencies
run: npm ci

# Set NPM auth token from GitHub Secrets
- env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

# build modules with microbundle
- name: Build
run: npm run build
Expand Down

0 comments on commit 87cf3fe

Please sign in to comment.