-
-
Notifications
You must be signed in to change notification settings - Fork 37
34 lines (29 loc) · 1014 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- uses: shallwefootball/s3-upload-action@master
name: Upload version to S3 (depay-libraries)
with:
aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_bucket: depay-libraries
source_dir: '../dist/umd/index.bundle.js'
destination_dir: widgets/${{ steps.package-version.outputs.current-version }}.js
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}