FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
NativeScript/.github/workflows/npm_release_types.yml at main · NativeScript/NativeScript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
NativeScript
/
NativeScript
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1.7k
Star
25.6k
Code
Issues
771
Pull requests
63
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
NativeScript
/
.github
/
workflows
/
npm_release_types.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
53 lines (48 loc) · 1.54 KB
Breadcrumbs
NativeScript
/
.github
/
workflows
/
npm_release_types.yml
Copy path
File metadata and controls
53 lines (48 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#
TODO: modify to build android & ios types first and then merge into types
name
:
'
@nativescript/types -> npm
'
permissions
:
contents
:
read
pull-requests
:
write
on
:
push
:
branches
:
[ 'main' ]
paths
:
-
'
packages/types/**
'
env
:
NPM_TAG
:
'
next
'
jobs
:
release
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Harden the runner (Audit all outbound calls)
uses
:
step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411
#
v2.19.4
with
:
egress-policy
:
audit
-
name
:
Todo
run
:
|
echo "TODO: implement action"
#
- uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
#
#
- name: Setup
#
run: npm install
#
#
- name: Generate Version
#
working-directory: packages/types
#
run: |
#
echo NPM_VERSION=$(node -e "console.log(require('./package.json').version);")-$NPM_TAG-$(date +"%m-%d-%Y")-$GITHUB_RUN_ID >> $GITHUB_ENV
#
#
- name: Bump Version
#
working-directory: packages/types
#
run: npm version $NPM_VERSION
#
#
- name: Build @nativescript/types
#
run: npx nx run core:build
#
#
- name: Publish @nativescript/types
#
working-directory: dist/packages
#
env:
#
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
#
run: |
#
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ../../.npmrc
#
echo "Publishing @nativescript/types@$NPM_VERSION to NPM with tag $NPM_TAG..."
#
npm publish nativescript-types-$NPM_VERSION.tgz --tag $NPM_TAG
Back
|
FazBrowse Home
|
New Git URL