Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

Commit

Permalink
[master] Progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Michaelpalacce committed Jan 16, 2022
1 parent cc01546 commit aaec8d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 46 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: Publish

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
release:
types: [created]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,10 +21,6 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

Expand All @@ -44,3 +38,13 @@ jobs:
# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: ./BUILD

- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
33 changes: 0 additions & 33 deletions .github/workflows/npm-publish.yaml

This file was deleted.

5 changes: 1 addition & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ FROM node:14-alpine as builder
WORKDIR /app
COPY . .
RUN ls -lah
RUN npm i
RUN npm run build
RUN npm prune --production
RUN rm -rf src
RUN npm i && npm run build && npm prune --production && rm -rf src

FROM node:14-alpine as base

Expand Down

0 comments on commit aaec8d3

Please sign in to comment.