-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (50 loc) · 1.68 KB
/
release.yml
File metadata and controls
60 lines (50 loc) · 1.68 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
repository: interscript/interscript
- name: Run bootstrap script
run: ruby bootstrap.rb
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
- uses: actions/setup-node@v1
with:
node-version: 14.x
# For now let's install without secryst, as we don't necessarily need it.
# We may need to change it once we start to depend on secryst maps.
- name: Install bundle
working-directory: ./ruby
run: bundle install --jobs 4 --retry 3 --with jsexec --without secryst
- name: Test Ruby package
working-directory: ./ruby
run: bundle exec rake
- name: Test JS package
working-directory: ./js
run: npm install && npm run prepareMaps && npm test
- name: Publish to npmjs.org
env:
NPMJS_TOKEN: ${{secrets.INTERSCRIPT_NPM_TOKEN}}
working-directory: ./js
run: |
npm config set //registry.npmjs.org/:_authToken=$NPMJS_TOKEN
npm run prepareMaps
npm publish
# Let's keep it commented out for now. Please uncomment it once you are ready with
# interscript-api to support Interscript v2.
#
#- name: Trigger interscript-api
# uses: peter-evans/repository-dispatch@v1
# with:
# token: ${{ secrets.INTERSCRIPT_CI_PAT_TOKEN }}
# repository: interscript/interscript-api
# event-type: ${{ github.repository }}
# client-payload: '{ "ref": "${{ github.ref }}" }'