add destination fees #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Library build | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install dependencies | |
run: npm install | |
- name: Build Package | |
run: npm run build | |
- name: prepare package | |
run: | | |
mkdir emmet-sdk-v2 | |
mv package.json emmet-sdk-v2 | |
cp -r src/* emmet-sdk-v2 | |
mv Readme.md emmet-sdk-v2 | |
mv .gitignore emmet-sdk-v2 | |
- name: List Contents of out folder | |
run: ls -R emmet-sdk-v2 | |
- name: Prepare Production Release | |
uses: s0/git-publish-subdir-action@develop | |
if: ${{ github.ref == 'refs/heads/main' }} | |
env: | |
REPO: self | |
BRANCH: production | |
FOLDER: emmet-sdk-v2 | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
MESSAGE: "Build: ({sha}) {msg}" | |
- name: Publish to NPM | |
run: | | |
cd emmet-sdk-v2/ | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |