Skip to content

Commit

Permalink
Merge pull request #6 from axieinfinity/chore/publish
Browse files Browse the repository at this point in the history
chore: publish workflows
  • Loading branch information
pkhien95 authored Jun 6, 2023
2 parents b87b584 + 4b9655b commit 848f608
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This is a basic workflow to help you get started with Actions

name: Deploy APG-JS

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
tags:
- 'v*.*.*'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Get Tag name
id: get-version
run: echo ::set-output name=version::${GITHUB_REF#refs/*/}

# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://npm.pkg.github.com/

- name: Github private package token in npmrc
run: |
echo "@axieinfinity:registry=https://npm.pkg.github.com/" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.AXIE_SCOPE_TOKEN }}" >> .npmrc
# Runs a set of commands using the runners shell
- name: Build
run: |
yarn
yarn build
yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.AXIE_SCOPE_TOKEN }}


1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.*
!.gitignore
!.eslintrc.json
!.prettierrc
Expand Down

0 comments on commit 848f608

Please sign in to comment.