add node_auth_token to publish

This commit is contained in:
Sparticuz 2023-01-13 15:19:55 -05:00
parent 40428cc139
commit 639b156f72
1 changed files with 4 additions and 3 deletions

View File

@ -5,9 +5,6 @@ on:
tags:
- "*"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
jobs:
release:
name: Build and release
@ -30,6 +27,8 @@ jobs:
- name: Release chromium on npmjs
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
# Change the package name to chromium-min,
# delete the bin folder from the files array
@ -43,6 +42,8 @@ jobs:
- name: Release chromium-min on npmjs
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Create Lambda Layer
run: make chromium-${{ github.ref_name }}-layer.zip