Clone engine262 in /engine262

This commit is contained in:
2020-09-07 10:19:00 +05:30
parent 7688de2e5c
commit 66c1aeb9e0
313 changed files with 46014 additions and 0 deletions
+55
View File
@@ -0,0 +1,55 @@
name: Publish Package
on:
push:
branches:
- main
jobs:
publish-gpr:
runs-on: ubuntu-latest
steps:
# Set everything up
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@master
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@engine262'
always-auth: true # required if using yarn
- run: git submodule update --init --recursive
# Run tests and whatnot
- run: npm install
- run: npm run build
- run: npm run lint
- run: npm run coverage
env:
CONTINUOUS_INTEGRATION: 1
# Upload coverage data
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{github.token}}
# Publish built package
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{github.token}}
# Push build to to gh-pages
- run: |
git config --global user.email "gha@example.com"
git config --global user.name "GHA"
git remote add github "https://$GITHUB_ACTOR:$BETTER_GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git"
git fetch github
git checkout gh-pages
cp dist/* .
git add engine262.*
git commit -m "autobuild" || exit 0 # exit silently if nothing changed
git push -u github gh-pages
env:
BETTER_GITHUB_TOKEN: ${{secrets.BETTER_GITHUB_TOKEN}}