Skip to content

fix cannot access 'out': No such file or directory #8

fix cannot access 'out': No such file or directory

fix cannot access 'out': No such file or directory #8

Workflow file for this run

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 }}